1 import Test
.Cabal
.Prelude
2 import System
.Directory
5 cwd
<- fmap testCurrentDir getTestEnv
8 cabal
"init" ["-n", "--exe", "-p", "app", "--application-dir=app", "--main-is=Main.hs"]
10 setup
' "build" ["app"]
12 assertFileDoesContain
(cwd
</> "app.cabal") "Simple"
13 assertFileDoesContain
(cwd
</> "app.cabal") "base ^>="
14 assertFileDoesContain
(cwd
</> "app/Main.hs") "This should remain as is!"
15 assertOutputContains
"Linking" buildOut