[Haskell-beginners] type signature error in a where clause

Karl Voelker ktvoelker at gmail.com
Sat Nov 24 19:18:59 CET 2012


On Sat, Nov 24, 2012 at 7:32 AM, Mark Wallace <lotabout at gmail.com> wrote:

> Somehow it might seem a bit easier to me to grasp the function of a
> function with the help of type signature.
> I'll try just omitting the signatures, it's easier and more handy isn't it?


Writing down type signatures can be very helpful. I would recommend that,
in a complex situation like this, you move your helper functions to the top
level. That way, you can test and debug each individual helper in ghci.

-Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20121124/44b32406/attachment-0001.htm>


More information about the Beginners mailing list