shithub: MicroHs

ref: 5bcc30b7813a7bd15717f44d57cfb0dcbab3c87e
dir: /tests/LameCase.hs/

View raw version
module LameCase where

f :: Int -> Int
f = \case
  1 -> 2
  2 -> 3
  n -> n

main :: IO ()
main = mapM_ (print . f) [1,2,3,4]