summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/parser/should_fail/readFail003.hs
blob: 8595312137ab1dc9d6520f1bf1539f3308dd239d (plain)
1
2
3
4
5
6
7
8
-- !!! Irrefutable patterns + guards
module Read003 where

~(a,b,c) | nullity b	= a
	 | nullity c	= a
	 | otherwise	= a
	 where
	    nullity = null