Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseFile :: FilePath -> IO (ModName, [Import])
- parseString :: String -> (ModName, [Import])
- data Qualifier
- qualifierNodes :: Qualifier -> [String]
- fromHierarchy :: [String] -> Qualifier
- data Import = Import {}
- data ImpType
- splitQualifier :: String -> Qualifier
- type ModName = (Qualifier, String)
- splitModName :: String -> ModName
- joinModName :: ModName -> String
- relPaths :: ModName -> [FilePath]
- modToFile :: [FilePath] -> ModName -> IO [FilePath]
- suffixes :: [String]
Documentation
parseString :: String -> (ModName, [Import]) Source #
Get the imports from a string that represents a program.
A hierarchical module name.
We make this an opaque type with accessors qualifierNodes
and fromHierarchy
so that we can transparently add new structure to this type.
qualifierNodes :: Qualifier -> [String] Source #
fromHierarchy :: [String] -> Qualifier Source #
splitQualifier :: String -> Qualifier Source #
Convert a string name into a hierarchical name qualifier.
splitModName :: String -> ModName Source #
joinModName :: ModName -> String Source #