Bug 354629 - Recognize Haskell .hs-boot, .lhs extensions
Summary: Recognize Haskell .hs-boot, .lhs extensions
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-31 03:04 UTC by Khumba
Modified: 2017-07-24 07:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.37
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khumba 2015-10-31 03:04:23 UTC
Hello,

I'd like to request that the file extensions .hs-boot and .lhs be recognized as Haskell sources by default in Kate.  .hs-boot is a bootstrap module (a simplified form of an .hs file) that GHC uses to compile mutually recursive modules[1][2] and isn't uncommon, and .lhs is a Literate Haskell program[3][4].

I'm assuming that this is part of Kate, since the Haskell extensions recognized by Kate (.hs, .chs) are different from my KDE's (system's?) MIME configuration (.hs, .lhs).  (Kate 3.14.8, KDE 4.14.8, Gentoo amd64.)

[1] https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/separate-compilation.html#mutual-recursion
[2] https://wiki.haskell.org/Mutually_recursive_modules
[3] https://www.haskell.org/onlinereport/literate.html
[4] https://wiki.haskell.org/Literate_programming

Reproducible: Always
Comment 1 Dominik Haumann 2017-07-23 22:59:53 UTC
For lhs files there already is a separate "Literate Haskell" highlighting.

So just adding .hs-boot to haskell should be good enough, or rather add it to literate haskell?
Comment 2 Khumba 2017-07-23 23:42:46 UTC
Just to Haskell, please and thanks.  .hs-boot files use the same syntax as .hs files (specifically a subset, but it doesn't matter for highlighting).
Comment 3 Dominik Haumann 2017-07-24 07:55:26 UTC
Git commit fdf92adfc8083ffde4b4472eb64d147cd6283556 by Dominik Haumann.
Committed on 24/07/2017 at 07:55.
Pushed by dhaumann into branch 'master'.

Haskell: Add file extension .hs-boot (bootstrap module)

FIXED-IN: 5.37

M  +1    -1    data/syntax/haskell.xml

https://commits.kde.org/syntax-highlighting/fdf92adfc8083ffde4b4472eb64d147cd6283556