[Haskell-beginners] Type classes and synonyms

Philip Scott haskell-beginners at foo.me.uk
Sat Nov 21 17:25:35 EST 2009

Thanks John,

> Every module can have its own definition for each name, such as the
>  operator (+).  So in your module (eg. module Main, or module
>  DateValueSeries), you can go ahead and define your own (+).  The major
>  caveat is making sure you don't conflict with the default (+), which lives
>  in module Prelude, which is normally automatically brought into scope.

That actually quite nicely solves the problem... it feels almost a little too 
easy, after spending the evening getting my mind wrapped up with Arrows :)

Thank you very much for your help.

- Philip

More information about the Beginners mailing list