summaryrefslogtreecommitdiff
path: root/testsuite/tests/linear/should_compile/Pr110.hs
blob: a3311cb7b846db3b2a4cdbd2aedde3dee248355b (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE LinearTypes #-}
module Pr110 where

data Bloop = Bloop Bool

g :: Bloop #-> Bool
g (Bloop x) = x

h :: Bool #-> Bloop
h x = Bloop x