main.hs instead of config/project.hs
This commit is contained in:
parent
7a8e98158f
commit
9206a0554d
@ -123,7 +123,7 @@ scaffold = do
|
||||
_ -> error $ "Invalid backend: " ++ backendS
|
||||
|
||||
writeFile' ("config/settings.yml") $(codegen "config/settings.yml")
|
||||
writeFile' ("config/" ++ project ++ ".hs") $(codegen "project.hs")
|
||||
writeFile' ("main.hs") $(codegen "project.hs")
|
||||
writeFile' (project ++ ".cabal") $ if backendS == "m" then $(codegen "mini/cabal") else $(codegen "cabal")
|
||||
writeFile' ".ghci" $(codegen ".ghci")
|
||||
writeFile' "LICENSE" $(codegen "LICENSE")
|
||||
|
||||
@ -43,7 +43,7 @@ executable ~project~
|
||||
else
|
||||
ghc-options: -Wall -threaded
|
||||
|
||||
main-is: config/~project~.hs
|
||||
main-is: main.hs
|
||||
hs-source-dirs: ., config
|
||||
|
||||
build-depends: base >= 4 && < 5
|
||||
|
||||
@ -42,7 +42,7 @@ executable ~project~
|
||||
else
|
||||
ghc-options: -Wall -threaded
|
||||
|
||||
main-is: config/~project~.hs
|
||||
main-is: main.hs
|
||||
hs-source-dirs: ., config
|
||||
|
||||
build-depends: base >= 4 && < 5
|
||||
|
||||
Loading…
Reference in New Issue
Block a user