Major Emacs mode for reading GHC Core files

13 May
2010
13 May
'10
2:07 p.m.
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
5488
Age (days ago)
5488
Last active (days ago)
0 comments
1 participants
participants (1)
-
Johan Tibell