rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Support .hs-boot files #361

Open ice1000 opened 5 years ago

ice1000 commented 5 years ago

At least for syntax highlight.

niklasbroberg commented 2 years ago

I second this. The language of hs-boot files is the same as for regular .hs file (or a subset rather), so this ought to be a quick fix. Is it as simple as adding another entry like this:

<fileType name="Haskell Boot File" language="Haskell" implementationClass="intellij.haskell.HaskellFileType" extensions="hs-boot" fieldName="INSTANCE"/>

to the plugins.xml file? I'd write a PR if I was sure I wasn't missing something important.

ice1000 commented 2 years ago

You are! If you do this the parser will also be applied, and the code analysis will also be applied. I expect the language server to have some special support on hs-boot files :thinking: but most code should be reused for sure.