Safe Haskell | None |
---|---|
Language | Haskell2010 |
Readme
Documentation
Constructors
Dog | |
Fields
|
Instances
Constructors
DogApi_GetByDay :: Day -> DogApi [Dog] | |
DogApi_GetByName :: Text -> DogApi [Dog] | |
DogApi_GetLastSeen :: DogApi (Maybe Dog) | |
DogApi_ReportSighting :: Text -> Bool -> Maybe Text -> DogApi (Either Text ()) | |
DogApi_GetSuspiciousSightings :: DogApi [Dog] |
Constructors
CatApi_Identify :: Text -> CatApi (Either Text Token) | |
CatApi_DogApi :: forall a. Token -> DogApi a -> CatApi a |
startCatnet :: (Prerender t m, MonadHold t m, MonadIO (Performable m), MonadFix m, DomBuilder t m, PostBuild t m, TriggerEvent t m, PerformEvent t m, Has FromJSON CatApi, forall a. ToJSON (CatApi a)) => Either ApiEndpoint WebSocketEndpoint -> m () Source #
requestingJs :: forall t (m :: Type -> Type) a. (Reflex t, MonadFix m, Prerender t m) => Event t (Request (Client (Catnet t m)) a) -> Catnet t m (Event t (Response (Client (Catnet t m)) a)) Source #
login :: forall t (m :: Type -> Type). (DomBuilder t m, MonadHold t m, MonadFix m, Prerender t m) => Catnet t m (Event t Token) Source #
catnet :: forall t (m :: Type -> Type). (DomBuilder t m, MonadHold t m, MonadFix m, Prerender t m) => Token -> Catnet t m (Event t ()) Source #
showDog :: DomBuilder t m => Dog -> m () Source #