summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/prog008/A.hs
blob: 6a85ca70ce11b16d250ccb3ed6835c902aa6415b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE RankNTypes, MultiParamTypeClasses #-}

-- Tests a bug spotted by Claus in which the type
-- of c3 was wrongly displayed in GHCi as
--	c3 :: C a b => a -> b
-- Should be
--	c3 :: C a b => a1 -> b

module A where

class C a b where
  c1 :: Num b => a -> b
  c2 :: (Num b,Show b) => a -> b
  c3 :: forall a. a -> b