Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Generates a skeletal file structure to start a new Cartel-based
project. Similar to cabal init
or stack new
.
- cartelInit :: IO ()
- data Github = Github {}
- data GitInit = GitInit {}
- data License
- data TreeInitMode
- data TreeInit = TreeInit {}
- data InitMode
- data Init = Init {
- author :: String
- maintainer :: String
- initMode :: InitMode
- ghcOptions :: [NonEmptyString]
- license :: License
- baseLowerBound :: [Word]
- baseUpperBound :: [Word]
- cartelInitWithSettings :: Init -> IO ()
Documentation
cartelInit :: IO () Source #
Runs cartel-init
, retrieving all configuration information from
the command line.
Configuration information for Github.
Github | |
|
GitInit | |
|
What kind of license you want to use. Currently the only choices are BSD3 or AllRightsReserved.
data TreeInitMode Source #
MakeTreeOnly | Create a cabal file and write it with a skeleton of files. |
MakeGit GitInit | Create a cabal file, write it with a skeleton of files, and initialize a Git repository. |
TreeInit | |
|
What to do when running cabal-init
.
ShowCabalOnly | Only show a cabal file. |
MakeTree TreeInit | Create a cabal file and write it with a skeleton of files. |
Configuration options. Some of these can be overridden on the command line.
Init | |
|
cartelInitWithSettings :: Init -> IO () Source #
Runs cartel-init
, but with the settings you compile in.
Retrieves the project name from the command line. Has a
command-line option, --settings
, that displays the built-in
settings and then exits.