Portability | to be determined. |
---|---|
Stability | highly unstable |
Maintainer | Stephen Tetley <[email protected]> |
Precis.Cabal.InterimDatatypes
Description
Datatype for working with Cabal files...
- type FileExtension = String
- data CabalFilePath
- cabalFilePath :: FilePath -> CabalFilePath
- pathToCabalFile :: CabalFilePath -> FilePath
- directoriesToCabalFile :: CabalFilePath -> [FilePath]
- newtype ExeMainPath = ExeMainPath {}
- data CabalSourceDir
- cabalSourceDir :: FilePath -> CabalSourceDir
- directoriesToSource :: CabalSourceDir -> [FilePath]
- data ModName
- modName :: ModuleName -> ModName
- getModName :: ModName -> String
- data ModuleDesc
- moduleDesc :: ModuleName -> ModuleDesc
- moduleDescName :: ModuleDesc -> ModName
- moduleDirectories :: ModuleDesc -> [FilePath]
- data CabalPrecis = CabalPrecis {}
- data CabalLibrary = CabalLibrary {}
- data CabalExe = CabalExe {}
Documentation
type FileExtension = StringSource
data CabalFilePath Source
CabalFilePath
is both the full, normalized path to the
cabal file and the directory parts to the file.
This is an opaque type - construct with cabalFilePath
.
Instances
cabalFilePath :: FilePath -> CabalFilePathSource
Constructor for CabalFilePath
- the input FilePath is
normalized before constructing the data type.
data CabalSourceDir Source
Instances
modName :: ModuleName -> ModNameSource
getModName :: ModName -> StringSource
data ModuleDesc Source
Instances
data CabalPrecis Source
Constructors
CabalPrecis | |
Fields
|
Instances
data CabalLibrary Source
Constructors
CabalLibrary | |
Fields
|
Instances
Constructors
CabalExe | |
Fields |