1 import Test
.Cabal
.Prelude
2 import Control
.Monad
.IO.Class
3 -- Test that executable recompilation works
4 -- https://github.com/haskell/setup/issues/3294
5 main
= setupAndCabalTest
$ do
6 withSourceCopy
. withDelay
$ do
7 writeSourceFile
"Main.hs" "main = putStrLn \"aaa\""
10 runExe
' "T3294" [] >>= assertOutputContains
"aaa"
12 writeSourceFile
"Main.hs" "main = putStrLn \"bbb\""
14 runExe
' "T3294" [] >>= assertOutputContains
"bbb"