means to add files in a cabal package
This commit is contained in:
parent
0e77b0dba6
commit
a2a3f05189
3 changed files with 12 additions and 1 deletions
|
@ -14,6 +14,7 @@ maintainer: Yann.Esposito@gmail.com
|
|||
category: Unknown
|
||||
build-type: Simple
|
||||
-- extra-source-files:
|
||||
data-files: scaffold/gitignore
|
||||
cabal-version: >=1.10
|
||||
|
||||
executable holy-project
|
||||
|
|
6
scaffold/gitignore
Normal file
6
scaffold/gitignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
.cabal-sandbox
|
||||
cabal.sandbox.config
|
||||
dist
|
||||
*.swp
|
||||
*~
|
||||
.ghci
|
|
@ -5,6 +5,7 @@ import Data.List (intersperse)
|
|||
import Data.List.Split
|
||||
import System.Console.ANSI
|
||||
import System.IO (hFlush, stdout)
|
||||
import Paths_holy_project
|
||||
|
||||
-- | Record containing all information to initialize a project
|
||||
data Project = Project {
|
||||
|
@ -111,4 +112,7 @@ capitalize str = concat (map capitalizeWord (splitOneOf " -" str))
|
|||
|
||||
|
||||
createProject :: Project -> IO ()
|
||||
createProject p = putStrLn "I'm not a witch, I'm not a witch!"
|
||||
createProject p = do
|
||||
putStrLn "I'm not a witch, I'm not a witch!"
|
||||
filepath <- getDataFileName "scaffold/gitignore"
|
||||
putStrLn filepath
|
||||
|
|
Loading…
Reference in a new issue