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