Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Functions in "where" block. (Mateusz Kowalczyk)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Jun 2014 01:39:33 +0200
From: Mateusz Kowalczyk <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Functions in "where" block.
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 06/12/2014 04:21 AM, Kim-Ee Yeoh wrote:
> On Thu, Jun 12, 2014 at 8:54 AM, Venu Chakravorty <[email protected]> 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
> 
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
> 

For reference, GHC treats hard tabs as 8 spaces.

Even in my mail client the problem is quite apparent[1].

Set your editor to use spaces only. I think [2] is the standard
reference for whitespace style.

[1]: http://fuuzetsu.co.uk/images/1402875503.png
[2]: http://urchin.earth.li/~ian/style/haskell.html
-- 
Mateusz K.


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 72, Issue 14
*****************************************

Reply via email to