1 import Test
.Cabal
.Prelude
5 recordMode DoNotRecord
$ do
7 root
<- testTmpDir
<$> getTestEnv
12 liftIO
$ writeFile (root
++ "/src/Internal.hs")
13 " module Internal where;\
15 \ data Unused = Unused;"
16 fails
$ cabal
"test" [] -- broken module on purpose
18 writeInternalOrig root
19 out
<- cabal
' "test" [] -- shouldn't fail!
21 assertOutputDoesNotContain
22 "<no location info>: error:" out
23 assertOutputDoesNotContain
24 "Cannot continue after interface file error" out
28 writeInternalOrig r
= liftIO
$ do
29 writeFile (r
++ "/src/Internal.hs")
30 " module Internal where;\
32 \ data Unused = Unused;\