Difference between revisions of "User:BrettGiles"
BrettGiles (talk | contribs) (→Haskell Interests: - went from wxHaskell to Gtk2Hs) |
BrettGiles (talk | contribs) (Add code for fixing "line-end-position" on haskell-mode / xemacs) |
||
Line 11: | Line 11: | ||
Currently working on a compiler and simulator for a quantum programming language, using [[Gtk2Hs]] as the visualization tool. |
Currently working on a compiler and simulator for a quantum programming language, using [[Gtk2Hs]] as the visualization tool. |
||
+ | |||
+ | ==Haskell mode for XEmacs== |
||
+ | I use Haskell mode for emacs on XEmacs. So far, on all the linux systems that i have tried it on (admittedly, only Ubuntu and Debian), there is a system function missing that interferes with automatic indenting. |
||
+ | |||
+ | To fix this, find where the haskell mode package is installed on your system. (Usually <code>/usr/share/emacs/site-lisp/haskell-mode</code>). Edit the file <code>haskell-mode.el</code> and add the lines: |
||
+ | <pre> |
||
+ | (eval-and-compile |
||
+ | |||
+ | ;; If `line-end-position' isn't available provide one. |
||
+ | (unless (fboundp 'line-end-position) |
||
+ | (defun line-end-position (&optional n) |
||
+ | "Return the `point' of the end of the current line." |
||
+ | (save-excursion |
||
+ | (end-of-line n) |
||
+ | (point))))) |
||
+ | </pre> |
||
+ | right after the comments at the top. That should fix the issue. |
||
==License of contributions== |
==License of contributions== |
Revision as of 16:25, 3 September 2006
Brett Giles
Grad Student in Formal Methods at the University of Calgary.
http://pages.cpsc.ucalgary.ca/~gilesb
Haskell Interests
Compilers: Currently make lots of use of Alex and Happy.
Currently working on a compiler and simulator for a quantum programming language, using Gtk2Hs as the visualization tool.
Haskell mode for XEmacs
I use Haskell mode for emacs on XEmacs. So far, on all the linux systems that i have tried it on (admittedly, only Ubuntu and Debian), there is a system function missing that interferes with automatic indenting.
To fix this, find where the haskell mode package is installed on your system. (Usually /usr/share/emacs/site-lisp/haskell-mode
). Edit the file haskell-mode.el
and add the lines:
(eval-and-compile ;; If `line-end-position' isn't available provide one. (unless (fboundp 'line-end-position) (defun line-end-position (&optional n) "Return the `point' of the end of the current line." (save-excursion (end-of-line n) (point)))))
right after the comments at the top. That should fix the issue.
License of contributions
I hereby license all my contributions to this wiki, and the old hawiki, under the simple permissive license on HaskellWiki:Copyrights — BrettGiles 03:14, 2 March 2006 (UTC)