Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.PureScript.CodeGen
- genModule :: Settings -> [Req PSType] -> Doc
- genModuleHeader :: Text -> ImportLines -> Doc
- getReaderParams :: Settings -> [PSParam] -> [PSParam]
- genParamSettings :: [PSParam] -> Doc
- genFunction :: [PSParam] -> Req PSType -> Doc
- genGetReaderParams :: [PSParam] -> Doc
- genSignature :: Text -> [PSType] -> Maybe PSType -> Doc
- genSignatureBuilder :: Doc -> Text -> [PSType] -> Maybe PSType -> Doc
- genFnHead :: Text -> [Text] -> Doc
- genFnBody :: [PSParam] -> Req PSType -> Doc
- genBuildURL :: Url PSType -> Doc
- genBuildPath :: Path PSType -> Doc
- genBuildSegment :: SegmentType PSType -> Doc
- genBuildQuery :: [QueryArg PSType] -> Doc
- genBuildQueryArg :: QueryArg PSType -> Doc
- genBuildHeaders :: [HeaderArg PSType] -> Doc
- genBuildHeader :: HeaderArg PSType -> Doc
- reqsToImportLines :: [Req PSType] -> ImportLines
- reqToPSTypes :: Req PSType -> [PSType]
- reqToParams :: Req PSType -> [Param PSType]
- urlToParams :: Url f -> [Param f]
- segmentToParam :: SegmentType f -> Maybe (Param f)
- queryArgToParam :: QueryArg f -> Param f
- headerArgToParam :: HeaderArg f -> Param f
- reqBodyToParam :: Maybe f -> Maybe (Param f)
- docIntercalate :: Doc -> [Doc] -> Doc
- textURLEncode :: Bool -> Text -> Text
- psVar :: Text -> Doc
Documentation
genModuleHeader :: Text -> ImportLines -> Doc Source #
genParamSettings :: [PSParam] -> Doc Source #
genGetReaderParams :: [PSParam] -> Doc Source #
genBuildSegment :: SegmentType PSType -> Doc Source #
reqsToImportLines :: [Req PSType] -> ImportLines Source #
reqToParams :: Req PSType -> [Param PSType] Source #
Extract all function parameters from a given Req.
urlToParams :: Url f -> [Param f] Source #
segmentToParam :: SegmentType f -> Maybe (Param f) Source #
queryArgToParam :: QueryArg f -> Param f Source #
headerArgToParam :: HeaderArg f -> Param f Source #