rest-gen-0.9.0.2: Documentation and client generation from rest definition.

Safe HaskellNone

Rest.Gen.Haskell.Generate

Documentation

lLibExposed :: forall cat. ArrowApply cat => Lens cat Library BoolSource

lLibBuildInfo :: forall cat. ArrowApply cat => Lens cat Library BuildInfoSource

lExposedModules :: forall cat. ArrowApply cat => Lens cat Library [ModuleName]Source

lCondTreeData :: forall cat v c a. ArrowApply cat => Lens cat (CondTree v c a) aSource

lCondTreeConstraints :: forall cat v c a. ArrowApply cat => Lens cat (CondTree v c a) cSource

lCondTreeComponents :: forall cat v c a. ArrowApply cat => Lens cat (CondTree v c a) [(Condition v, CondTree v c a, Maybe (CondTree v c a))]Source

lGenPackageFlags :: forall cat. ArrowApply cat => Lens cat GenericPackageDescription [Flag]Source

lCondTestSuites :: forall cat. ArrowApply cat => Lens cat GenericPackageDescription [(String, CondTree ConfVar [Dependency] TestSuite)]Source

lCondLibrary :: forall cat. ArrowApply cat => Lens cat GenericPackageDescription (Maybe (CondTree ConfVar [Dependency] Library))Source

lCondBenchmarks :: forall cat. ArrowApply cat => Lens cat GenericPackageDescription [(String, CondTree ConfVar [Dependency] Benchmark)]Source

data HaskellContext Source

Constructors

HaskellContext 

Fields

apiVersion :: Version
 
targetPath :: String
 
wrapperName :: String
 
includePrivate :: Bool
 
sources :: [String]
 
imports :: [String]
 
rewrites :: [(String, String)]
 
namespace :: [String]
 

mkFunction :: Version -> String -> ApiAction -> (Code, [String])Source

linkToURL :: String -> Link -> (Code, [String])Source

urlParts :: String -> Link -> ([Code], [String]) -> ([Code], [String])Source

rewriteModules :: [(String, String)] -> [String] -> [String]Source

hsName :: [String] -> StringSource

modName :: String -> StringSource

dataName :: String -> StringSource

inputInfo :: DataDescription -> ([String], String, String, String)Source

outputInfo :: DataDescription -> ([String], String, String, String)Source

errorInfo :: DataDescription -> ([String], String, String)Source