Novice question

2001-04-22 Thread Mark Carroll
Is this a good place for novice questions? I have just started to try to learn Haskell, and am using Hugs to start with. When I write the not-very-useful function, greaterthan 0 _ _ = False greaterthan _ (x:xs) (y:ys) = x y and test it, Main greaterthan 2 [3] [4] False Main greaterthan 3 [4]

Novice question

2001-04-22 Thread Tom Pledger
Mark Carroll writes: | Is this a good place for novice questions? Yes, either here or on http://haskell.org/wiki/wiki | greaterthan 0 _ _ = False | greaterthan _ (x:xs) (y:ys) = x y : | Main greaterthan 0 [] [] | ERROR: Unresolved overloading | *** Type : Ord a = Bool | ***