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

data Bloop = Bloop Bool

g :: Bloop %1 -> Bool
g (Bloop x) = x

h :: Bool %1 -> Bloop
h x = Bloop x