[Haskell-cafe] question about indentation conventions
Patrick Mylund Nielsen
haskell at patrickmylund.com
Tue Jul 2 04:09:13 CEST 2013
I prefer the other style--as do others, evidently (see the example in my
first reply.) I agree that this was a good discussion, but let's not
conclude so easily that the entire community is in favor of one thing or
On Mon, Jul 1, 2013 at 8:24 PM, Richard Cobbe <cobbe at ccs.neu.edu> wrote:
> On Sun, Jun 30, 2013 at 07:53:08PM -0400, Richard Cobbe wrote:
> > Two questions:
> And what I've concluded by reading this thread:
> > 1) Are there wide-spread conventions in the Haskell community for how to
> > indent an application expression that's split across multiple lines?
> Well, there's general consensus in favor of indenting the continuing lines,
> but not a lot of consensus on how much, etc. Not surprising, and that's
> OK. Infix operators are more complicated.
> > 2) If there is such a convention, how do I make Emacs's haskell-mode do
> Doesn't seem to be possible, unless you're in a "do" block.
> To be clear: I wasn't asking how to make Emacs do all of my indentation
> automatically, as it can in Lisp and C modes. I realize that isn't
> But since haskell-mode doesn't have very good support for the style I
> personally prefer (which is, in fact, consistent with Richard O'Keefe's
> favorite rule), I wondered if that might indicate that the community
> prefers a different style. Apparently not.
> Thanks to all who responded; it's been an interesting (if occasionally
> overly excited) discussion.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe