never executed always true always false
1 -----------------------------------------------------------------------------
2 -- |
3 -- Module : Distribution.Client.Init.Defaults
4 -- Copyright : (c) Brent Yorgey 2009
5 -- License : BSD-like
6 --
7 -- Maintainer : cabal-devel@haskell.org
8 -- Stability : provisional
9 -- Portability : portable
10 --
11 -- Default values to use in cabal init (if not specified in config/flags).
12 --
13 -----------------------------------------------------------------------------
14
15 module Distribution.Client.Init.Defaults (
16 defaultApplicationDir
17 , defaultSourceDir
18 , defaultCabalVersion
19 , myLibModule
20 ) where
21
22 import Prelude (String)
23
24 import Distribution.ModuleName
25 ( ModuleName ) -- And for the Text instance
26 import qualified Distribution.ModuleName as ModuleName
27 ( fromString )
28 import Distribution.CabalSpecVersion
29 ( CabalSpecVersion (..))
30
31 defaultApplicationDir :: String
32 defaultApplicationDir = "app"
33
34 defaultSourceDir :: String
35 defaultSourceDir = "src"
36
37 defaultCabalVersion :: CabalSpecVersion
38 defaultCabalVersion = CabalSpecV2_4
39
40 myLibModule :: ModuleName
41 myLibModule = ModuleName.fromString "MyLib"