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

-- Test the 1 <= p rule
f :: a %1 -> b
f = f

g :: a %p -> b
g x = f x