[Haskell-beginners] Functions in "where" block.
Kim-Ee Yeoh
ky3 at atamo.com
Thu Jun 12 02:21:56 UTC 2014
On Thu, Jun 12, 2014 at 8:54 AM, Venu Chakravorty <c.venu at aol.com> wrote:
> fun.hs:4:15: parse error on input `='
>
The problem wasn't obvious until I copy-pasted it into an editor:
You have tabs instead of spaces for the line defining ep.
The rule of thumb is that your editor must expand all tabs into matching
spaces for whitespace-sensitive languages like haskell. Or else you'll
waste time with this kind of parsing errors.
-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140612/6bc1ba6b/attachment.html>
More information about the Beginners
mailing list