intellij-haskell icon indicating copy to clipboard operation
intellij-haskell copied to clipboard

Support .hs-boot files

Open ice1000 opened this issue 6 years ago • 2 comments
trafficstars

At least for syntax highlight.

ice1000 avatar Dec 17 '18 03:12 ice1000

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.

niklasbroberg avatar May 02 '22 07:05 niklasbroberg

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.

ice1000 avatar May 02 '22 21:05 ice1000