Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Project = Project {}
- projectName :: Lens' Project Text
- projectPath :: Lens' Project Path
- projectCabal :: Lens' Project Path
- projectDescription :: Lens' Project (Maybe ProjectDescription)
- projectPackageDbStack :: Lens' Project (Maybe PackageDbStack)
- project :: FilePath -> Project
- data ProjectDescription = ProjectDescription {}
- projectVersion :: Lens' ProjectDescription Text
- projectLibrary :: Lens' ProjectDescription (Maybe Library)
- projectExecutables :: Lens' ProjectDescription [Executable]
- projectTests :: Lens' ProjectDescription [Test]
- infos :: Traversal' ProjectDescription Info
- targetInfos :: ProjectDescription -> [TargetInfo]
- class Target a where
- data TargetInfo = TargetInfo {}
- targetInfoName :: Lens' TargetInfo (Maybe Text)
- targetBuildInfo :: Lens' TargetInfo Info
- targetInfoMain :: Lens' TargetInfo (Maybe Path)
- targetInfoModules :: Lens' TargetInfo [[Text]]
- targetInfo :: Target a => a -> TargetInfo
- data Library = Library {
- _libraryModules :: [[Text]]
- _libraryBuildInfo :: Info
- libraryModules :: Lens' Library [[Text]]
- libraryBuildInfo :: Lens' Library Info
- data Executable = Executable {}
- executableName :: Lens' Executable Text
- executablePath :: Lens' Executable Path
- executableBuildInfo :: Lens' Executable Info
- data Test = Test {
- _testName :: Text
- _testEnabled :: Bool
- _testMain :: Maybe Path
- _testBuildInfo :: Info
- testName :: Lens' Test Text
- testEnabled :: Lens' Test Bool
- testBuildInfo :: Lens' Test Info
- testMain :: Lens' Test (Maybe Path)
- data Info = Info {
- _infoDepends :: [Text]
- _infoLanguage :: Maybe Language
- _infoExtensions :: [Extension]
- _infoGHCOptions :: [Text]
- _infoSourceDirs :: [Path]
- _infoOtherModules :: [[Text]]
- infoDepends :: Lens' Info [Text]
- infoLanguage :: Lens' Info (Maybe Language)
- infoExtensions :: Lens' Info [Extension]
- infoGHCOptions :: Lens' Info [Text]
- infoSourceDirs :: Lens' Info [Path]
- infoOtherModules :: Lens' Info [[Text]]
- data Extensions a = Extensions {
- _extensions :: [Extension]
- _ghcOptions :: [Text]
- _entity :: a
- extensions :: forall a. Lens' (Extensions a) [Extension]
- ghcOptions :: forall a. Lens' (Extensions a) [Text]
- entity :: forall a a. Lens (Extensions a) (Extensions a) a a
Documentation
Cabal project
data ProjectDescription Source #
infos :: Traversal' ProjectDescription Info Source #
Build target infos
targetInfos :: ProjectDescription -> [TargetInfo] Source #
Build target infos, more detailed
targetName :: Traversal' a Text Source #
buildInfo :: Lens' a Info Source #
targetMain :: a -> Maybe Path Source #
targetModules :: a -> [[Text]] Source #
data TargetInfo Source #
TargetInfo | |
|
targetInfoModules :: Lens' TargetInfo [[Text]] Source #
targetInfo :: Target a => a -> TargetInfo Source #
Library in project
Library | |
|
data Executable Source #
Executable
Test
Test | |
|
Build info
Info | |
|
data Extensions a Source #
Entity with project extensions
Extensions | |
|
Functor Extensions Source # | |
Applicative Extensions Source # | |
Foldable Extensions Source # | |
Traversable Extensions Source # | |
Eq a => Eq (Extensions a) Source # | |
Ord a => Ord (Extensions a) Source # | |
Read a => Read (Extensions a) Source # | |
Show a => Show (Extensions a) Source # | |
EnumContents (Extensions ModuleLocation) Source # | |
extensions :: forall a. Lens' (Extensions a) [Extension] Source #
ghcOptions :: forall a. Lens' (Extensions a) [Text] Source #
entity :: forall a a. Lens (Extensions a) (Extensions a) a a Source #