| Safe Haskell | Safe-Inferred |
|---|
Rest.Gen.Types
- unModuleName :: ModuleName -> String
- overModuleName :: (String -> String) -> ModuleName -> ModuleName
- namedImport :: String -> ImportDecl
- qualImport :: String -> ImportDecl
- haskellStringType :: Type
- haskellByteStringType :: Type
- haskellUnitType :: Type
- haskellSimpleType :: String -> Type
- noLoc :: SrcLoc
- newtype ModuleName = ModuleName String
- data ImportDecl = ImportDecl {
- importLoc :: SrcLoc
- importModule :: ModuleName
- importQualified :: Bool
- importSrc :: Bool
- importSafe :: Bool
- importPkg :: Maybe String
- importAs :: Maybe ModuleName
- importSpecs :: Maybe (Bool, [ImportSpec])
Documentation
unModuleName :: ModuleName -> StringSource
overModuleName :: (String -> String) -> ModuleName -> ModuleNameSource
namedImport :: String -> ImportDeclSource
Create a simple named basic import, to be updated with other fields as needed.
qualImport :: String -> ImportDeclSource
Qualified import with given name
haskellSimpleType :: String -> TypeSource
newtype ModuleName
The name of a Haskell module.
Constructors
| ModuleName String |
Instances
| Eq ModuleName | |
| Data ModuleName | |
| Ord ModuleName | |
| Show ModuleName | |
| Typeable ModuleName | |
| Generic ModuleName | |
| Pretty ModuleName |
data ImportDecl
An import declaration.
Constructors
| ImportDecl | |
Fields
| |
Instances
| Eq ImportDecl | |
| Data ImportDecl | |
| Ord ImportDecl | |
| Show ImportDecl | |
| Typeable ImportDecl | |
| Generic ImportDecl | |
| Pretty ImportDecl |