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 #
getReaderParams :: Settings -> [PSParam] -> [PSParam] #
genParamSettings :: [PSParam] -> Doc #
genGetReaderParams :: [PSParam] -> 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] #
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 #