| Safe Haskell | None |
|---|
NLP.GenI.Server
Documentation
initialise :: Params -> IO ProgStateSource
parseInstruction :: JSON j => ByteString -> Either String jSource
Arguments
| :: Int64 | maximum request size (see |
| -> ProgState | |
| -> CustomSem sem | |
| -> Snap () |
ok :: GenReq -> GeniResults -> Snap ()Source
showResults :: [GeniResult] -> TextSource
handleRequest :: ProgState -> CustomSem sem -> ServerInstruction -> IO (Either Text GeniResults)Source
prettyEncode :: JSON a => a -> TextSource