Actually, nevermind, it works now. (My textmate crashed after I first changed the tab size to 8, and I didn't realize it didn't save the change when I tried it out again after restarting.)
Thanks!
I changed the tab size to 8, and everything looks correctly lined up, but I still get the error.
The weird thing is, if I copy and paste some 'do' code from somewhere, it runs fine; but if I modify the 'do' construct, I get the error.On 6/1/07, Robin Houston < robin.houston@gmail.com> wrote:______________________________________________________________________On 6/1/07, Edwin Chen < edchen@mit.edu> wrote:Does anyone else have (a fix to) the following problem with the Haskell bundle:
When making do statements, unless I do the brackets+semicolons thing to tell ghc to ignore formatting, I get a
"The last statement in a 'do' construct must be an expression"
even though I have everything lined up correctly.
Do you have the tab size set to 8 characters? I think the Haskell
layout mechanism assumes (in good Unix tradition) that tab stops
are 8 characters, but TextMate's default is 4.
If you change the tab size to 8, does everything still look correctly
lined up?
Robin
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate