haskell / haskell/stylish-haskell

Imports that are not on top of file are not parsed properly.

Open
#51 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Hello!
There is parse error while parsing some files with imports inside of file (this is possible when using CPP extension). Example file, which is not parsed correctly can be found in Cabal install:
https://github.com/haskell/cabal/blob/master/cabal-install/Distribution/Client/Win32SelfUpgrade.hs

(there are imports on lines 209 and 210)

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.