haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Parse failure when importing with an explicit namespace #417

Open Taneb opened 5 years ago

Taneb commented 5 years ago

The file

{-# LANGUAGE ExplicitNamespaces  #-}

import Prelude (type Bool)

parses fine with GHC, but with Language.Haskell.Exts.parseFile I get the following error:

ParseFailed (SrcLoc "../Test.hs" 3 22) "Parse error: Bool"

I believe this is due to the explicit namespace in the import