Copyright | (c) Raghu Kaippully 2020 |
---|---|
License | MPL-2.0 |
Maintainer | rkaippully@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Traits related to HTTP body.
Synopsis
- data JSONRequestBody (t :: Type)
Documentation
data JSONRequestBody (t :: Type) Source #
A Trait
for converting a JSON request body into a value.
Instances
(FromJSON t, MonadIO m) => Trait (JSONRequestBody t :: Type) Request m Source # | |
Defined in WebGear.Trait.Body type Val (JSONRequestBody t) Request Source # type Fail (JSONRequestBody t) Request Source # check :: Request -> m (CheckResult (JSONRequestBody t) Request) Source # | |
type Val (JSONRequestBody t :: Type) Request Source # | |
Defined in WebGear.Trait.Body | |
type Fail (JSONRequestBody t :: Type) Request Source # | |
Defined in WebGear.Trait.Body |