On 20 Aug, Bob Howard wrote:
> data BTree Integer = Leaf Integer | Node Integer (BTree Integer) (BTree Integer)
^
this ought to be a type variable name, but you've put the
name of a type.
> mkTree :: Integer -> BTree
^ argument missing
> mkTree 0 = Leaf 0
> mkTree int = Node int (mkTree (int - 1)) (mkTree (int -1))
Actually, I have fond memories of Algol compilers that gave error
messages pretty much as comprehensible as those above. I guess the
problem is that Haskell compilers are prepared by people who have more
pressing tasks than repeating old work on user friendly error messages
:-(
Jón
--
Jón Fairbairn [EMAIL PROTECTED]