[Haskell-cafe] Multiple statements with Where
Matthew Brecknell
haskell at brecknell.org
Tue Dec 18 09:17:28 EST 2007
insertjokehere wrote:
> where bm = bracketMatch str
> nstr = words (snd (bracketMatch str))
It looks like you have set your editor to make tabs look like four
spaces. Haskell compilers are required to interpret tabs as being
equivalent to eight spaces, so it sees "bm =" and "nstr =" at different
alignments.
Moral of the story: It's probably best to just not use tabs in Haskell
code.
More information about the Haskell-Cafe
mailing list