on 5928af6 help sign in
18 lines 268 B history raw
1{-# LANGUAGE ViewPatterns #-}
3example f (f -> 4) = True
5f (t -> Nothing) = "Nothing"
6f (t -> Just _) = "Just"
8g ((f, _), f -> 4) = True
10multiline
11 ( t ->
12 Foo
13 bar
14 baz
15 ) = True
17-- https://github.com/tweag/ormolu/issues/343
18foo = (f -> 4)