Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with auto-indentation; function with guards #9

Open
aaarbk opened this issue May 29, 2019 · 0 comments
Open

issue with auto-indentation; function with guards #9

aaarbk opened this issue May 29, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@aaarbk
Copy link

aaarbk commented May 29, 2019

First off, I think this is a fantastic effort and a massive improvement over the regular repl!

I've noticed a possible issue with the auto-indentation. (I say "possible" because I'm not an experienced Haskell programmer so maybe there's a good reason behind the current behaviour.)

I'm trying to write a function that uses guards, for example:

f x
   | x > 0 = 1
   | x < 0 = -1
   | otherwise = 0

I press <Meta+Enter> after typing in the function signature, and then proceed to type in the first guard.. but the auto-indentation doesn't kick in at any point:

On the second guard, only after typing space after the pipe does the autoindent kick in; but obviously that doesn't help.

It works if I indent manually by pressing Tab before I type in the pipe for the first guard itself.

@RichardWarfield RichardWarfield added the bug Something isn't working label Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants