haskell / haskell/stylish-haskell

`stylish-haskell` rejects source with indented module scope

Open
#37 1 comment 0 reactions 0 assignees View on GitHub
haskell-src-exts
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

The program below is rejected by `stylish-haskell`

``` 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 = ".hs", srcLine = 5, srcColumn = 3}) "Parse error: main"
```

whereas `ghc` happily accepts that program.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.