[Haskell-cafe] Major Emacs mode for reading GHC Core files

Johan Tibell johan.tibell at gmail.com
Thu May 13 14:07:50 EDT 2010


Hi all,

I wrote a minimal major mode for reading (and editing) GHC Core files. It
provides syntax highlighting and removal of commonly ignored annotations,
similar to what's offered by ghc-core.

* Usage

Dump the simplifier output in a file with a .hcr suffix:

    ghc -c -ddump-simpl -O2 Test.hs > /tmp/Test.hcr

Open the .hcr file in Emacs. Use `ghc-core-clean-buffer` to remove commonly
ignored annotations and namespace prefixes from the buffer.

* Prerequisites

You need to have haskell-mode installed.

* Installation

Download the file from

    http://johantibell.com/files/ghc-core.el

and put it in your ~/.emacs.d directory. Add

    (load-file "~/.emacs.d/ghc-core.el")

to ~/.emacs.d/init.el

Cheers,
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100513/eac5cf83/attachment.html


More information about the Haskell-Cafe mailing list