summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_run/ghci.script
blob: cd71e3323571ce7945828cd270add31b26a7893e (plain)
1
2
3
4
5
6
7
8
:set -XPatternSynonyms

pattern Single x = [x]
:i Single
let foo (Single x) = Single (not x)
:t foo
foo [True]
foo [True, False]