Improve online docs for `includes:` field
[cabal.git] / cabal-testsuite / PackageTests / Recompilation / GHC24926 / cabal.test.hs
blob607426f381cf31f18a923a6c0356c33e001c3cad
1 import Test.Cabal.Prelude
3 -- See ghc#24926
4 main = cabalTest $ do
5 recordMode DoNotRecord $ do
7 root <- testTmpDir <$> getTestEnv
9 writeInternalOrig root
10 cabal "test" []
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
26 where
28 writeInternalOrig r = liftIO $ do
29 writeFile (r ++ "/src/Internal.hs")
30 " module Internal where;\
32 \ data Unused = Unused;\
34 \ b :: IO (); \
35 \ b = pure ();"