ghc-exactprint-0.6.4: tests/examples/ghc90/Linear4.hs
{-# LANGUAGE LinearTypes #-}
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE LambdaCase, GADTs #-}
module Linear4 where
correctCase :: Bool ⊸ a ⊸ a
correctCase x n =
case x of
True -> n
False -> n