arybczak / ghc-tags

A command line tool that leverages GHC API for generation of etags (Emacs) and ctags (Vim, VSCode with ctagsx etc.) for efficient code navigation (jump to definition).
Mozilla Public License 2.0
21 stars 3 forks source link

Error on `import GHC.TypeLits (type (*))` #25

Open Tritlo opened 3 months ago

Tritlo commented 3 months ago

This fails to parse, even though it is valid Haskell:

import GHC.TypeLits (type (*))

main :: IO ()
main = return ()
arybczak commented 3 months ago

This is only valid if NoStarIsType is enabled, you need to add it to a local ghc-tags.yaml.

EDIT: Ah ok, I see that ghc-tags doesn't recognize NoStarIsType as a valid extension. This needs fixing. For now as a workaround you can add it to the source file as a LANGUAGE pragma.