Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Project = Project {}
- projectName :: Lens' Project String
- projectPath :: Lens' Project FilePath
- projectCabal :: Lens' Project FilePath
- projectDescription :: Lens' Project (Maybe ProjectDescription)
- project :: FilePath -> Project
- absolutiseProjectPaths :: Project -> Project
- relativiseProjectPaths :: Project -> Project
- data ProjectDescription = ProjectDescription {}
- projectVersion :: Lens' ProjectDescription String
- projectLibrary :: Lens' ProjectDescription (Maybe Library)
- projectExecutables :: Lens' ProjectDescription [Executable]
- projectTests :: Lens' ProjectDescription [Test]
- class Target a where
- data Library = Library {
- _libraryModules :: [[String]]
- _libraryBuildInfo :: Info
- libraryModules :: Lens' Library [[String]]
- libraryBuildInfo :: Lens' Library Info
- data Executable = Executable {}
- executableName :: Lens' Executable String
- executablePath :: Lens' Executable FilePath
- executableBuildInfo :: Lens' Executable Info
- data Test = Test {}
- testName :: Lens' Test String
- testEnabled :: Lens' Test Bool
- testBuildInfo :: Lens' Test Info
- data Info = Info {
- _infoDepends :: [String]
- _infoLanguage :: Maybe Language
- _infoExtensions :: [Extension]
- _infoGHCOptions :: [String]
- _infoSourceDirs :: [FilePath]
- infoDepends :: Lens' Info [String]
- infoLanguage :: Lens' Info (Maybe Language)
- infoExtensions :: Lens' Info [Extension]
- infoGHCOptions :: Lens' Info [String]
- infoSourceDirs :: Lens' Info [FilePath]
- data Extensions a = Extensions {
- _extensions :: [Extension]
- _ghcOptions :: [String]
- _entity :: a
- extensions :: forall a. Lens' (Extensions a) [Extension]
- ghcOptions :: forall a. Lens' (Extensions a) [String]
- entity :: forall a a. Lens (Extensions a) (Extensions a) a a
Documentation
Cabal project
absolutiseProjectPaths :: Project -> Project Source #
Make paths absolute, not relative
relativiseProjectPaths :: Project -> Project Source #
Make paths relative
data ProjectDescription 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) [String] Source #
entity :: forall a a. Lens (Extensions a) (Extensions a) a a Source #