Skip to content

haskell-indentation-mode layout tops braces #712

Closed
@arybczak

Description

@arybczak

Consider the following code:

module Main where

data Foo = Foo {
  bar :: Int
, baz :: Int
} deriving Show

main :: IO ()
main = do
  let foo = Foo {
        bar = 0
      , baz = 0
      }
  putStrLn $ show foo

After you go to the line with "baz = 0" and press Enter, Emacs displays "Illegal token: layout-item" in statusbar and indentation no longer works after this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions