I ran into some rather confusing behaviour when I used gen-hie with a cabal file that ended with an other-modules list. I loaded Hie.Cabal.Parser into GHCi to confirm this.
Test cabal file (to be parsed with/without a final newline):
name: foo
executable bar
main-is: Main.hs
other-modules: Hello
, World
This file seems to miss World both with/without the final newline.
I ran into some rather confusing behaviour when I used
gen-hie
with a cabal file that ended with another-modules
list. I loadedHie.Cabal.Parser
into GHCi to confirm this.Test cabal file (to be parsed with/without a final newline):
This file seems to miss
World
both with/without the final newline.Test cabal file (to be parsed with/without a final newline):
This file is parsed different with/without a final newline: