Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A high-level wrapper for SetCookie
that interfaces with servant types, generates
and verifies cookie name from the type, handles randomness generation, and cookie deletion.
Documentation
newtype SimpleSetCookie name Source #
Instances
cookieName :: forall (proxy :: Symbol -> Type) (name :: Symbol). KnownSymbol name => proxy name -> SBS Source #
cookieToHeader :: SimpleSetCookie name -> Header Source #
toggleCookie :: forall name m. (Applicative m, SP m, KnownSymbol name) => SBS -> Maybe (ST, NominalDiffTime) -> m (SimpleSetCookie name) Source #
setSimpleCookieValue :: SimpleSetCookie name -> SBS Source #