knupfer / haskell-emacs

Write Emacs extensions in Haskell
376 stars 22 forks source link

evaluate lisp macro in haskell source #7

Closed knupfer closed 9 years ago

knupfer commented 9 years ago

when injecting the lisp code into the haskell source and evaluate the appropriate region without saving the file, the documentation will note that this function is defined the haskell source, but it won't confuse ghc, because the file isn't edited.

knupfer commented 9 years ago

solved with an even better solution: f9b362109c382c7cc3a821be57f06230c6c7e11c function definitions get evaluated in a temp buffer which gets the file name with a let binding to link the elisp functions to the haskell sources