Commit 6a5f304f authored by Simon Marlow's avatar Simon Marlow
Browse files

fix this test on windows (avoid non-portable use of :!)

parent 6b373c5c
:set -v1
:! echo "module A where { import B; }" >A.hs
:! echo "module B where { type T = Int; }" >B.hs
System.IO.writeFile "A.hs" "module A where { import B; }"
System.IO.writeFile "B.hs" "module B where { type T = Int; }"
-- hack: avoid the need for sleep by using specific timestamps:
:! touch -t 01010000 A.hs
:! touch -t 01010000 B.hs
:load A
:! echo "module A where { import B; oops }" >A.hs
System.IO.writeFile "A.hs" "module A where { import B; oops }"
:! touch -t 01010001 A.hs
:reload
-- B should still be loaded
:module *B
:! echo "module A where { import B; }" >A.hs
System.IO.writeFile "A.hs" "module A where { import B; }"
:! touch -t 01010002 A.hs
:reload
-- should not have to reload B
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment