diff --git a/holy-project.cabal b/holy-project.cabal index 370aa6d..d2b13ac 100644 --- a/holy-project.cabal +++ b/holy-project.cabal @@ -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 diff --git a/scaffold/gitignore b/scaffold/gitignore new file mode 100644 index 0000000..3a124cb --- /dev/null +++ b/scaffold/gitignore @@ -0,0 +1,6 @@ +.cabal-sandbox +cabal.sandbox.config +dist +*.swp +*~ +.ghci diff --git a/src/Main.hs b/src/Main.hs index 56b4e2e..10327a8 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -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