Skip to content

haskell-indentation mode can't parse -XDoAndIfThenElse syntax #321

Open
@kini

Description

@kini

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions