diff options
Diffstat (limited to 'testsuite/tests/patsyn/should_run/ghci.script')
-rw-r--r-- | testsuite/tests/patsyn/should_run/ghci.script | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/patsyn/should_run/ghci.script b/testsuite/tests/patsyn/should_run/ghci.script new file mode 100644 index 0000000000..cd71e33235 --- /dev/null +++ b/testsuite/tests/patsyn/should_run/ghci.script @@ -0,0 +1,8 @@ +:set -XPatternSynonyms + +pattern Single x = [x] +:i Single +let foo (Single x) = Single (not x) +:t foo +foo [True] +foo [True, False] |