Copyright | (c) 2015 Brendan Hay <brendan.g.hay@gmail.com> |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Nat = Nat {}
- _Nat :: Iso' Nat Natural
- shortText :: Builder -> Text
- _Coerce :: (Coercible a b, Coercible b a) => Iso' a b
- _Default :: Monoid a => Iso' (Maybe a) a
- parseJSONText :: FromText a => String -> Value -> Parser a
- toJSONText :: ToText a => a -> Value
- class GoogleRequest a where
- type Rs a :: *
- requestWithRoute :: Req -> BaseUrl -> a -> EitherT ServantError IO (Rs a)
- request :: a -> EitherT ServantError IO (Rs a)
- send :: GoogleRequest a => a -> EitherT ServantError IO (Rs a)
- mapping :: (Functor f, Functor g) => AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
- parseJSONText :: FromText a => String -> Value -> Parser a
- toJSONText :: ToText a => a -> Value
- _Coerce :: (Coercible a b, Coercible b a) => Iso' a b
- _Default :: Monoid a => Iso' (Maybe a) a
Documentation
_Default :: Monoid a => Iso' (Maybe a) a Source
Invalid Iso, should be a Prism but exists for ease of composition with the current 'Lens . Iso' chaining to hide internal types from the user.
toJSONText :: ToText a => a -> Value Source
class GoogleRequest a where Source
requestWithRoute :: Req -> BaseUrl -> a -> EitherT ServantError IO (Rs a) Source
send :: GoogleRequest a => a -> EitherT ServantError IO (Rs a) Source
Types
Serialisation
toJSONText :: ToText a => a -> Value Source