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

class C p where
  cid :: p a a -> p a a

instance C (->) where
  cid = id

foo = (cid $ id) $ ()