shithub: MicroHs

ref: 83c472492f864dce83e948d6968417bc3538db18
dir: /tests/EmptyCase.hs/

View raw version
module EmptyCase where

data Void

absurd1 :: Void -> a
absurd1 x = case x of {}

absurd2 :: Void -> a
absurd2 = \case {}

main :: IO ()
main = pure ()