This linter plugin for SublimeLinter provides an interface to ghc. It will be used with files that have the "Haskell" syntax.
SublimeLinter must be installed in order to use this plugin.
Please use Package Control to install the linter plugin.
To install ghc, you can install haskell-platform which includes ghc or ghc itself. Follow the instructions on their websites to install.
haskell-platform is available on many package managers, for example brew update; brew install haskell-platform on Mac OS X.
This linter reads the diagnostics that ghc prints with -fdiagnostics-as-json, so it needs GHC 9.10 or newer. With an older ghc the linter only logs ghc: unrecognised flag: -fdiagnostics-as-json in the console; use an older release of this linter there.
Please make sure that the path to ghc is available to SublimeLinter.
The docs cover troubleshooting PATH configuration.
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html