Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Eq Options Source # | |
Ord Options Source # | |
Defined in Shpadoinkle.Isreal.Types | |
Show Options Source # | |
Generic Options Source # | |
type Rep Options Source # | |
Defined in Shpadoinkle.Isreal.Types type Rep Options = D1 (MetaData "Options" "Shpadoinkle.Isreal.Types" "Shpadoinkle-isreal-0.0.0.2-LWUFhCYLoE11RDEVmr2eoj" False) (C1 (MetaCons "Options" PrefixI True) (S1 (MetaSel (Just "territory") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath) :*: S1 (MetaSel (Just "swan") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FilePath))) |
newtype CompileError Source #
Instances
Code | |
|
Instances
Eq Code Source # | |
Ord Code Source # | |
Read Code Source # | |
Show Code Source # | |
Generic Code Source # | |
ToJSON Code Source # | |
FromJSON Code Source # | |
NFData Code Source # | |
Defined in Shpadoinkle.Isreal.Types | |
MimeRender OctetStream Code Source # | |
Defined in Shpadoinkle.Isreal.Types mimeRender :: Proxy OctetStream -> Code -> ByteString Source # | |
MimeUnrender OctetStream Code Source # | |
Defined in Shpadoinkle.Isreal.Types mimeUnrender :: Proxy OctetStream -> ByteString -> Either String Code Source # mimeUnrenderWithType :: Proxy OctetStream -> MediaType -> ByteString -> Either String Code Source # | |
type Rep Code Source # | |
Defined in Shpadoinkle.Isreal.Types type Rep Code = D1 (MetaData "Code" "Shpadoinkle.Isreal.Types" "Shpadoinkle-isreal-0.0.0.2-LWUFhCYLoE11RDEVmr2eoj" True) (C1 (MetaCons "Code" PrefixI True) (S1 (MetaSel (Just "unCode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
Instances
Eq SnowToken Source # | |
Ord SnowToken Source # | |
Defined in Shpadoinkle.Isreal.Types | |
Read SnowToken Source # | |
Show SnowToken Source # | |
Generic SnowToken Source # | |
ToJSON SnowToken Source # | |
FromJSON SnowToken Source # | |
NFData SnowToken Source # | |
Defined in Shpadoinkle.Isreal.Types | |
ToHttpApiData SnowToken Source # | |
Defined in Shpadoinkle.Isreal.Types toUrlPiece :: SnowToken -> Text Source # toEncodedUrlPiece :: SnowToken -> Builder Source # toHeader :: SnowToken -> ByteString Source # toQueryParam :: SnowToken -> Text Source # | |
FromHttpApiData SnowToken Source # | |
Defined in Shpadoinkle.Isreal.Types | |
type Rep SnowToken Source # | |
Defined in Shpadoinkle.Isreal.Types |
unSnowToken :: SnowToken -> Text Source #
type API = ("echo" :> (Capture "echo" Text :> Get '[PlainText] Text)) :<|> (("compile" :> (Capture "token" SnowToken :> (QueryParam' '[Required] "nonce" SnowNonce :> (ReqBody '[OctetStream] Code :> Post '[JSON] (Either CompileError Text))))) :<|> (("clean" :> (Capture "token" SnowToken :> Delete '[JSON, PlainText] Text)) :<|> (("clean-all" :> Delete '[JSON, PlainText] Text) :<|> (("serve" :> (Capture "token" SnowToken :> Raw)) :<|> Get '[PlainText] Text)))) Source #