Giter Site home page Giter Site logo

Comments (8)

hvr avatar hvr commented on May 18, 2024

I'd just like to mention, that the indenting should also be adapted (if there needs to be done anything special) for the respective 1-character-wide UnicodeSyntax tokens, i.e.

f  a
   b

from haskell-mode.

chrisdone avatar chrisdone commented on May 18, 2024

Surely this depends on the indentation mode? In my indentation mode if I indent -> it goes to under the ::. The ticket should specify which indentation mode.

from haskell-mode.

tibbe avatar tibbe commented on May 18, 2024

@chrisdone I just went and checked what I use:

(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

from haskell-mode.

pheaver avatar pheaver commented on May 18, 2024

So there are three indentation files to choose from:

haskell-indentation.el, activated by turn-on-haskell-indentation
haskell-simple-indent.el, activated by turn-on-haskell-simple-indent
haskell-indent.el, activated by turn-on-haskell-indent

I've tried all three, and verified that the first one doesn't indent the way you want, but the other two do.

from haskell-mode.

chrisdone avatar chrisdone commented on May 18, 2024

I've tried all three, and verified that the first one doesn't indent the way you want, but the other two do.

I believe he wants his choice of indentation module to behave in this case like the rest. So the resolution for this issue would be to patch that module unless tibbe wants to stop using this one just for this reason.

FWIW I have no intention of hacking on these indentation modes, I use haskell-simple-indent.el which I will maintain but the others are messes beyond my interest.

from haskell-mode.

hvr avatar hvr commented on May 18, 2024

Actually, I think @tibbe just wants something that can be tweaked to adhere to https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md... but on the other hand, Johan should just speak up for himself as to what he really wants... :-)

@chrisdone, btw will your haskell-simple-indent be flexible enough, in order to "emulate" (given appropriate configuration) the "legacy" indentation modes' styles, so that it may make those "legacy" modes redundant?

from haskell-mode.

chrisdone avatar chrisdone commented on May 18, 2024

@hvr

haskell-simple-indent isn't mine.

It doesn't do all that the other more advanced modes do. It is very simple. It is very predictable, that's why I like it. It does the same thing every time, goes forward (tab) or backwards (S-tab) on the columns defined by previous lines. It isn't for everyone. The other tab cycle modes annoy me and distract me from coding. Most people seem to like them though. I'm just clearing up that I haven't used them for years nor do I intend do, and so I have no interest in trying to solve issues related to them. Just in case any of the other maintainers thought I might be picking tickets like this up. :-)

from haskell-mode.

ivan-m avatar ivan-m commented on May 18, 2024

Was this made optional? I actually prefer having the arrows indented relative to the ::.

from haskell-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.