[project @ 1997-12-16 16:27:38 by simonm]
[ghc-hetmet.git] / ghc / tests / typecheck / should_compile / tc093.stderr
1 ghc: module version changed to 1; reason: no old .hi file
2 _interface_ ShouldSucceed 1
3 _instance_modules_
4 Addr ArrBase Foreign IO PrelNum
5 _usages_
6 PrelBase 1 :: $d1 1 $d12 1 $d15 1 $d16 1 $d2 1 $d22 1 $d25 1 $d27 1 $d28 1 $d3 1 $d33 1 $d34 1 $d35 1 $d38 1 $d39 1 $d4 1 $d40 1 $d42 1 $d43 1 $d45 1 $d46 1 $d47 1 $d50 1 $d51 1 $d52 1 $d55 1 $d56 1 $d7 1 $d8 1 $d9 1 $m- 1 $m/= 1 $m< 1 $m<= 1 $m> 1 $m>= 1 $m>> 1 $mcompare 1 $mfromInt 1 $mmax 1 $mmin 1 $mshowList 1 && 1 . 1 not 1 showList__ 1 showParen 1 showSpace 1 showString 1 Eq 1 Eval 1 Monad 1 Num 1 Ord 1 Ordering 1 Show 1 ShowS 1 String 1;
7 PrelNum 1 :: $d10 1 $d16 1 $d17 1 $d18 1 $d29 1 $d33 1 $d34 1 $d35 1;
8 PrelTup 1 :: $d13 1 $d4 1 $d49 1 $d9 1;
9 _exports_
10 ShouldSucceed bindState foo unState unitState St State(State) TS(TS vs);
11 _instances_
12 instance _forall_ [c] {PrelBase.Eq c} => {PrelBase.Monad (State c)} = $d1;
13 instance {PrelBase.Eq TS} = $d2;
14 instance {PrelBase.Eval TS} = $d3;
15 instance _forall_ [c a] => {PrelBase.Eval (State c a)} = $d4;
16 instance {PrelBase.Show TS} = $d5;
17 _declarations_
18 1 $d1 _:_ _forall_ [c] {PrelBase.Eq c} => {PrelBase.Monad (State c)} ;;
19 1 $d2 _:_ {PrelBase.Eq TS} ;;
20 1 $d3 _:_ {PrelBase.Eval TS} ;;
21 1 $d4 _:_ _forall_ [c a] => {PrelBase.Eval (State c a)} ;;
22 1 $d5 _:_ {PrelBase.Show TS} ;;
23 1 type St = State TS ;
24 1 data State c a = State (c -> (a, c)) ;
25 1 data TS = TS {vs :: PrelBase.Int} ;
26 1 bindState _:_ _forall_ [ta tb tc] => State tb ta -> (ta -> State tb tc) -> State tb tc ;;
27 1 foo _:_ PrelBase.Int -> State TS PrelBase.Int ;;
28 1 unState _:_ _forall_ [ta tb] => State tb ta -> tb -> (ta, tb) ;;
29 1 unitState _:_ _forall_ [ta tb] => tb -> State ta tb ;;