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

Safe HaskellSafe-Inferred

Rest.Gen.Types

Synopsis

Documentation

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

newtype ModuleName

The name of a Haskell module.

Constructors

ModuleName String 

Instances

data ImportDecl

An import declaration.

Constructors

ImportDecl 

Fields

importLoc :: SrcLoc

position of the import keyword.

importModule :: ModuleName

name of the module imported.

importQualified :: Bool

imported qualified?

importSrc :: Bool

imported with {-# SOURCE #-}?

importSafe :: Bool

Import safe?

importPkg :: Maybe String

imported with explicit package name

importAs :: Maybe ModuleName

optional alias name in an as clause.

importSpecs :: Maybe (Bool, [ImportSpec])

optional list of import specifications. The Bool is True if the names are excluded by hiding.

Instances