Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The ModuleName type
Synopsis
- data ModuleName
- pprModuleName :: ModuleName -> SDoc
- moduleNameFS :: ModuleName -> FastString
- moduleNameString :: ModuleName -> String
- moduleNameSlashes :: ModuleName -> String
- moduleNameColons :: ModuleName -> String
- mkModuleName :: String -> ModuleName
- mkModuleNameFS :: FastString -> ModuleName
- stableModuleNameCmp :: ModuleName -> ModuleName -> Ordering
- parseModuleName :: ReadP ModuleName
Documentation
data ModuleName Source #
A ModuleName is essentially a simple string, e.g. Data.List
.
Instances
pprModuleName :: ModuleName -> SDoc Source #
moduleNameFS :: ModuleName -> FastString Source #
moduleNameString :: ModuleName -> String Source #
moduleNameSlashes :: ModuleName -> String Source #
Returns the string version of the module name, with dots replaced by slashes.
moduleNameColons :: ModuleName -> String Source #
Returns the string version of the module name, with dots replaced by colons.
mkModuleName :: String -> ModuleName Source #
stableModuleNameCmp :: ModuleName -> ModuleName -> Ordering Source #
Compares module names lexically, rather than by their Unique
s