Comments (8)
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.
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.
@chrisdone I just went and checked what I use:
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
from haskell-mode.
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.
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.
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.
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.
Was this made optional? I actually prefer having the arrows indented relative to the ::
.
from haskell-mode.
Related Issues (20)
- Build fails on Emacs 28.1 HOT 2
- Indentation errors when using TypeFamilies
- Error (use-package): haskell-mode/:config: Symbol’s value as variable is void: haskell-debug-mode-map
- Syntax highlighting confused by lack of spaces HOT 1
- Extend haskell-build-type to look for .nix files
- Four space indentation HOT 2
- QuasiQuotes that are not part of the Haskell standard or haskell-font-lock-quasi-quote-modes will cause haskell-indentation to be incorrect afterwards
- Upstream Mac M1 Stack issue causing run-haskell to fail for Stack projects
- True TRAMP Support
- haskell-session-change-target unusable in cabal package with multiple library stanzas HOT 1
- C-c C-c `haskell-process-cabal-build` won't work if haven't ran C-c C-l
- Cabal repl without a cabal file
- tree-sitter HOT 1
- add topics HOT 1
- Feature request: "cabal repl" with file target HOT 1
- Haskell repl freezes when I run getChar HOT 1
- string-trim-left redefinition vs quasi-quote tests in emacs 29.1 HOT 3
- Should `haskell-cabal` mode derive from `prog-mode`? HOT 4
- Color escape sequences from `cabal repl` causing garbled output (Cabal 3.10.1.0) HOT 3
- `deriving someStrategy ...` breaks indentation in the rest of the file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-mode.