Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CabalInfo = CabalInfo {
- ciPackageName :: !(Maybe String)
- ciDynOpts :: ![DynOption]
- ciDependencies :: !(Set String)
- ciCabalFilePath :: !(Maybe FilePath)
- defaultCabalInfo :: CabalInfo
- data PackageName
- unPackageName :: PackageName -> String
- data Extension
- getCabalInfoForSourceFile :: MonadIO m => FilePath -> m CabalInfo
- findCabalFile :: MonadIO m => FilePath -> m (Maybe FilePath)
- parseCabalInfo :: MonadIO m => FilePath -> FilePath -> m CabalInfo
Documentation
Cabal information of interest to Ormolu.
CabalInfo | |
|
Instances
defaultCabalInfo :: CabalInfo Source #
Cabal info that is used by default when no .cabal file can be found.
data PackageName #
A package name.
Use mkPackageName
and unPackageName
to convert from/to a
String
.
This type is opaque since Cabal-2.0
Since: Cabal-2.0.0.2
Instances
unPackageName :: PackageName -> String #
Convert PackageName
to String
This represents language extensions beyond a base Language
definition
(such as Haskell98
) that are supported by some implementations, usually
in some special mode.
Where applicable, references are given to an implementation's official documentation.
EnableExtension KnownExtension | Enable a known extension |
DisableExtension KnownExtension | Disable a known extension |
UnknownExtension String | An unknown extension, identified by the name of its |
Instances
getCabalInfoForSourceFile Source #
Locate .cabal file corresponding to the given Haskell source file and
obtain CabalInfo
from it.