shithub: MicroHs

ref: c101325aaf8ed0ec3c8c4ff4b7d425bba799825a
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 ()