1 2 3 4 5 6 7
module ViewPatternsFail where data Foo = Foo { a :: Int } foo :: Foo -> Int foo (a -> l) = l