Baalthazaq
11-27-2003, 11:37 AM
Alright,
I don't want to make too many new topics and flood the boards with questions, so I'll just extend this every time I have a new Haskell question instead.
Just wondering what the difference between => and -> is in Haskell.
I'm not finding much useful stuff. It's been thrown into a practical excercise without any explanation. I don't think we're expected to know what it does yet, and just use it but I'd rather know.
Am I right in concluding it has something to do with polymorphism? That's about as much as I can gather.
Thanks in advance for any help.
The context is the following:
eq_Pair :: (Eq a, Eq b) => Pair a b -> Pair a b -> Bool
I don't want to make too many new topics and flood the boards with questions, so I'll just extend this every time I have a new Haskell question instead.
Just wondering what the difference between => and -> is in Haskell.
I'm not finding much useful stuff. It's been thrown into a practical excercise without any explanation. I don't think we're expected to know what it does yet, and just use it but I'd rather know.
Am I right in concluding it has something to do with polymorphism? That's about as much as I can gather.
Thanks in advance for any help.
The context is the following:
eq_Pair :: (Eq a, Eq b) => Pair a b -> Pair a b -> Bool