Christopher L Conway wrote:
I've installed 2.3 and it exhibits the same indentation behavior: any
entity appearing on a new line immediately after module X where
wants to be indented 4 spaces, including function definitions and
variable bindings.
Yes, it does do that. And it's correct syntax
I am new to Haskell---and also to languages with the off-side
rule--and working my way through Hal Daume's tutorial. I'm a little
confused by the support for code layout in Emacs' haskell-mode. Is it
buggy, or am I doing something wrong.
For example, here's the Hello, world example from the
Hi Christopher,
I have also noticed that haskell-mode (and indeed Haskell) can be finicky
sometimes. I usually put module [Name] where all on the same line and
leave imports on the left margin, so I hadn't experienced the first
problem you mentioned. However, I do notice that if I re-arrange
On 14/05/07, Christopher L Conway [EMAIL PROTECTED] wrote:
For example, here's the Hello, world example from the tutorial, with
the indentation induced by pounding Tab in haskell-mode.
test.hs:
module Test
where
import IO
main = do
putStrLn Hello, world
Prelude :l test
[1 of 1]
On 5/14/07, David House [EMAIL PROTECTED] wrote:
You should install 2.3 from the haskell-mode page [1]. Isaac Jones,
maintainer of the Debian haskell-mode package has been contacted in
order to get the latest version in the Debian repository, so it should
happen soon, but in the mean time you
Nick Meyer wrote:
main = do putStrLn Enter a number:
inp - getLine
let n = read inp
if n == 0
then putStrLn Zero
else putStrLn NotZero
(that's with all the expressions in the do block lining up vertically, if
that doesn't show up in a fixed-width