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

Safe HaskellSafe-Inferred
LanguageHaskell98

Rest.Gen.Types

Synopsis

Documentation

namedImport :: String -> ImportDecl Source

Create a simple named basic import, to be updated with other fields as needed.

qualImport :: String -> ImportDecl Source

Qualified import with given name

noLoc :: SrcLoc

newtype ModuleName :: *

Constructors

ModuleName String 

data ImportDecl :: *

Instances

Eq ImportDecl 
Data ImportDecl 
Ord ImportDecl 
Show ImportDecl 
Generic ImportDecl 
Pretty ImportDecl 
Typeable * ImportDecl 
type Rep ImportDecl = D1 D1ImportDecl (C1 C1_0ImportDecl ((:*:) ((:*:) (S1 S1_0_0ImportDecl (Rec0 SrcLoc)) ((:*:) (S1 S1_0_1ImportDecl (Rec0 ModuleName)) (S1 S1_0_2ImportDecl (Rec0 Bool)))) ((:*:) ((:*:) (S1 S1_0_3ImportDecl (Rec0 Bool)) (S1 S1_0_4ImportDecl (Rec0 (Maybe String)))) ((:*:) (S1 S1_0_5ImportDecl (Rec0 (Maybe ModuleName))) (S1 S1_0_6ImportDecl (Rec0 (Maybe (Bool, [ImportSpec]))))))))