2 ==================== Parser ====================
3 module OneOfEverything (
4 module OneOfEverything, module OneC, OrdClass(orda, ordb),
5 EqClass(..), EqTree(EqLeaf, EqBranch), FooDataC(..), FooDataB(..),
10 import System hiding (getArgs)
13 {- implicit forall -} (OrdClass a, OrdClass b) => a -> b -> b
17 Foo a -> [b] -> (a, a, a) -> b
41 + ([z | z <- c, isSpace z]))
42 + (let y = ... in ((...) + (...)) + ([..., ... .. ...]))
65 type Pair a b = (a, b)
66 data FooData = forall. FooCon Int
67 data FooDataB = forall. FooConB Double
68 data (Eq a) => EqTree a =
69 forall. EqLeaf a | forall. EqBranch (EqLeaf a) (EqLeaf a)
70 class (Eq a) => EqClass a where {
71 eqc :: {- implicit forall -} a -> Char;
74 class (Ord a) => OrdClass a where {
75 orda :: {- implicit forall -} a -> Char;
76 ordb :: {- implicit forall -} a -> Char;
77 ordc :: {- implicit forall -} a -> Char;
79 instance {- implicit forall -} (Eq a) => EqClass (EqTree a) where
82 default (Rational, Integer)
86 read001.hs:5: Unknown module in export list: module `OneC'
88 read001.hs:5: Type constructor or class not in scope: `FooDataC'
90 read001.hs:38: Type constructor or class not in scope: `EqLeaf'
92 read001.hs:38: Type constructor or class not in scope: `EqLeaf'
94 read001.hs:87: Variable not in scope: `x'
96 read001.hs:88: Variable not in scope: `x'
98 read001.hs:94: Variable not in scope: `isSpace'
100 read001.hs:95: Variable not in scope: `foo'
102 read001.hs:107: Data constructor not in scope: `Foo'
104 read001.hs:107: Data constructor not in scope: `Bar'
106 read001.hs:112: Type constructor or class not in scope: `Foo'
108 Compilation had errors