diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-09-30 23:31:59 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-12 19:16:40 -0400 |
commit | 9257abebdf4904407f607814c4cfa27002d404e8 (patch) | |
tree | dfb4c8be51987bef4c4e22d533d4b74fedbca854 /testsuite/tests/ghci/scripts/T9293.script | |
parent | 683011c7be9861d316a14ffb458341b8db68df34 (diff) | |
download | haskell-9257abebdf4904407f607814c4cfa27002d404e8.tar.gz |
testsuite: Drop :set from ghci scripts
The ghci scripts for T9293 and ghci057 used `:set` to print the
currently-set options. However, in neither case was this necessary to
the correctness of the test and moreover it would introduce spurious
platform-dependence (e.g. since `-fexternal-dynamic-refs` is set by
default only on platforms that support dynamic linking).
Diffstat (limited to 'testsuite/tests/ghci/scripts/T9293.script')
-rw-r--r-- | testsuite/tests/ghci/scripts/T9293.script | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/testsuite/tests/ghci/scripts/T9293.script b/testsuite/tests/ghci/scripts/T9293.script index c4719e26e4..ed0b8b0a75 100644 --- a/testsuite/tests/ghci/scripts/T9293.script +++ b/testsuite/tests/ghci/scripts/T9293.script @@ -1,23 +1,19 @@ :set -XHaskell2010 -:set putStrLn "Should fail, GADTs is not enabled" data T a where C :: T Int :set -XGADTs -:set putStrLn "Should work, GADTs is in force from :set" :load ghci057.hs :unset -XGADTs -:set putStrLn "Should fail, GADTs is now disabled" :load ghci057.hs :seti -XGADTs -:seti putStrLn "Should fail, GADTs is only enabled at the prompt" :load ghci057.hs |