diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-01-25 14:50:49 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-01-25 14:50:49 +0000 |
commit | 3d0f4c731741ec4d8c6302f8681fb75e948c65d7 (patch) | |
tree | 93d662292606b3266350daa566155c057727c6bb /testsuite/tests/ghci/scripts/T1914.script | |
parent | 8f5b04534925f9b2eaa996e3e3765f9fea8d7c83 (diff) | |
download | haskell-3d0f4c731741ec4d8c6302f8681fb75e948c65d7.tar.gz |
Rename some numeric tests: nnnn -> Tnnnn
Diffstat (limited to 'testsuite/tests/ghci/scripts/T1914.script')
-rw-r--r-- | testsuite/tests/ghci/scripts/T1914.script | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T1914.script b/testsuite/tests/ghci/scripts/T1914.script new file mode 100644 index 0000000000..5a74350341 --- /dev/null +++ b/testsuite/tests/ghci/scripts/T1914.script @@ -0,0 +1,16 @@ +:set -v1 +System.IO.writeFile "T1914A.hs" "module T1914A where { import T1914B; }" +System.IO.writeFile "T1914B.hs" "module T1914B where { type T = Int; }" +-- hack: avoid the need for sleep by using specific timestamps: +:! touch -t 01010000 T1914A.hs +:! touch -t 01010000 T1914B.hs +:load T1914A +System.IO.writeFile "T1914A.hs" "module T1914A where { import T1914B; oops }" +:! touch -t 01010001 T1914A.hs +:reload +-- T1914B should still be loaded +:module *T1914B +System.IO.writeFile "T1914A.hs" "module T1914A where { import T1914B; }" +:! touch -t 01010002 T1914A.hs +:reload +-- should not have to reload T1914B |