summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/tc090.hs
blob: f568c390a5156cc0ab11f5c72b52911432513056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{-	This module tests that we can ge polymorphic recursion
	of overloaded functions.  GHC 2.02 produced the following
	bogus error:

	tmp.lhs:1: A group of type signatures have mismatched contexts
		       Abf.a ::  (PrelBase.Ord f{-aX6-}) => ...
		       Abf.b ::  (PrelBase.Ord f{-aX2-}) => ... 

	This was due to having more than one type signature for one
	group of recursive functions.
-}


module ShouldSucceed where

a :: (Ord f) => f 
a = b

b :: (Ord f) => f 
b = a