haskell / haskell/haskell-mode

haskell-indentation mode can't parse -XDoAndIfThenElse syntax

Open
#321 9 comments 0 reactions 0 assignees View on GitHub
indentation
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

As title. The following code compiles and works fine but produces parse errors after the "else":

``` haskell
{-# LANGUAGE DoAndIfThenElse #-}
main :: IO ()
main = do
if True then
return ()
else
return ()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.