[project @ 1998-04-17 15:58:37 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 302
3 _instance_modules_
4 IO PrelAddr PrelArr PrelBounded PrelCCall PrelForeign PrelNum
5 _usages_
6 PrelBase 1 :: $dEq0 1 $dEq1 1 $dEqBool0 1 $dEqChar0 1 $dEqInt0 1 $dEqOrdering0 1 $dEval0 1 $dEval1 1 $dEval2 1 $dEvalBool0 1 $dEvalChar0 1 $dEvalDouble0 1 $dEvalInt0 1 $dEvalInteger0 1 $dEvalOrdering0 1 $dMonad0 1 $dNumInt0 1 $dOrd0 1 $dOrd1 1 $dOrdBool0 1 $dOrdChar0 1 $dOrdInt0 1 $dOrdOrdering0 1 $dShow0 1 $dShow1 1 $dShow2 1 $dShowBool0 1 $dShowChar0 1 $dShowInt0 1 $dShowOrdering0 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 :: $dEqDouble0 1 $dEqInteger0 1 $dNumDouble0 1 $dNumInteger0 1 $dOrdDouble0 1 $dOrdInteger0 1 $dShowDouble0 1 $dShowInteger0 1;
8 PrelTup 1 :: $dEq0 1 $dEval0 1 $dOrd0 1 $dShow3 1;
9 _exports_
10 ShouldSucceed bindState foo unState unitState St State(State) TS(TS vs);
11 _instances_
12 instance {PrelBase.Eq TS} = $dEqTS0;
13 instance _forall_ [a b] => {PrelBase.Eval (State a b)} = $dEvalState0;
14 instance {PrelBase.Eval TS} = $dEvalTS0;
15 instance _forall_ [a] {PrelBase.Eq a} => {PrelBase.Monad (State a)} = $dMonadState0;
16 instance {PrelBase.Show TS} = $dShowTS0;
17 _declarations_
18 1 $dEqTS0 _:_ {PrelBase.Eq TS} ;;
19 1 $dEvalState0 _:_ _forall_ [a b] => {PrelBase.Eval (State a b)} ;;
20 1 $dEvalTS0 _:_ {PrelBase.Eval TS} ;;
21 1 $dMonadState0 _:_ _forall_ [a] {PrelBase.Eq a} => {PrelBase.Monad (State a)} ;;
22 1 $dShowTS0 _:_ {PrelBase.Show TS} ;;
23 1 bindState _:_ _forall_ [a b c] => State a b -> (b -> State a c) -> State a c ;;
24 1 data State c a = State (c -> (a, c)) ;
25 1 data TS = TS {vs :: PrelBase.Int} ;
26 1 foo _:_ PrelBase.Int -> State TS PrelBase.Int ;;
27 1 type St = State TS ;
28 1 unState _:_ _forall_ [a b] => State a b -> a -> (b, a) ;;
29 1 unitState _:_ _forall_ [a b] => a -> State b a ;;