Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purcell/flymake-haskell-multi
Syntax-check haskell source in Emacs using both ghc and hlint
https://github.com/purcell/flymake-haskell-multi
Last synced: about 2 months ago
JSON representation
Syntax-check haskell source in Emacs using both ghc and hlint
- Host: GitHub
- URL: https://github.com/purcell/flymake-haskell-multi
- Owner: purcell
- Created: 2013-03-21T17:19:25.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T07:15:33.000Z (3 months ago)
- Last Synced: 2024-11-07T08:23:22.765Z (3 months ago)
- Language: Emacs Lisp
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
flymake-haskell-multi.el
========================*Note: you probably want to use [flycheck](https://github.com/lunaryorn/flycheck) instead.*
An Emacs flymake handler for checking Haskell source code with both
`ghc` and [hlint][hlint]. If `ghc -Wall -fno-code` returns no errors,
`hlint` is run (if available). Warnings and errors output by both programs
will be displayed via flymake overlays in the source code.This works via a small shell script, `haskell_multi`, which is bundled.
For a demonstration, see [this screencast](http://www.youtube.com/watch?v=aj7WF_Zm9zY).
Installation
=============If you choose not to use one of the convenient packages in
[Melpa][melpa] and [Marmalade][marmalade], you'll need to add the
directory containing `flymake-haskell-multi.el` and the
`haskell_multi` script to your `load-path`, and then `(require
'flymake-haskell-multi)`. You'll also need to install
[flymake-easy](https://github.com/purcell/flymake-easy).You should also install [hlint][hlint] and ensure it is on your `exec-path`.
Usage
=====Add the following to your emacs init file:
(require 'flymake-haskell-multi) ;; not needed if installed via package
(add-hook 'haskell-mode-hook 'flymake-haskell-multi-load)[marmalade]: http://marmalade-repo.org
[melpa]: http://melpa.org
[hlint]: http://community.haskell.org/~ndm/hlint/
[💝 Support this project and my other Open Source work](https://www.patreon.com/sanityinc)
[💼 LinkedIn profile](https://uk.linkedin.com/in/stevepurcell)
[✍ sanityinc.com](http://www.sanityinc.com/)