Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- handleJson :: forall o m ts i st. HandleArgs ts st m => ToJSON o => MonadIO m => Introspection i Response (RespBody '[Json] o) => Method -> (DelayedArgs st ~> m o) -> Router' i ts m
- reqJson :: forall r m i ts. Introspection i Request (ReqBody '[Json] r) => FromJSON r => (MonadIO m, MonadThrow m) => ValueCombinator i (WithReq m (ReqBody '[Json] r)) ts m
- data Json
Documentation
:: forall o m ts i st. HandleArgs ts st m | |
=> ToJSON o | |
=> MonadIO m | |
=> Introspection i Response (RespBody '[Json] o) | |
=> Method | . |
-> (DelayedArgs st ~> m o) | |
-> Router' i ts m |
:: forall r m i ts. Introspection i Request (ReqBody '[Json] r) | |
=> FromJSON r | |
=> (MonadIO m, MonadThrow m) | |
=> ValueCombinator i (WithReq m (ReqBody '[Json] r)) ts m | . |
Extracts JSON from request
.../>
reqJson
@MyType.>
...