Skip to content

stylish-haskell rejects source with indented module scope #37

Open
@hvr

Description

@hvr

The program below is rejected by stylish-haskell

module Blah where

  import Prelude (IO,return)

  main :: IO ()
  main = do
      return ()

with the parse error

Language.Haskell.Stylish.Parse.parseModule: could not parse Blah.hs: ParseFailed (SrcLoc {srcFilename = "<unknown>.hs", srcLine = 5, srcColumn = 3}) "Parse error: main"

whereas ghc happily accepts that program.

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