Quick actions

cmd+k|ctrl+k

Navigation

Languages

Alex Jones 69 #YOLO

Snippet info

Language

Haskell

Visibility

public

Author

danielmg17

Created

2019-06-05T22:29:27Z

Updated

2019-06-05T22:29:27Z

{-# language CPP #-}
#define extend(x) {-# language x #-}

extend(LambdaCase)

foo :: Bool -> Int
foo = \case
    True -> -1
    False -> 0

main = do
    let x = foo True
    print x
INFO