summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/ViewPatternsFail.hs
blob: 35517575b5020f97ae780aa0d8d0f2f503d38b20 (plain)
1
2
3
4
5
6
7

module ViewPatternsFail where

data Foo = Foo { a :: Int }

foo :: Foo -> Int
foo (a -> l) = l