A 20/12/2012, às 21:23, Rohan Drape escreveu:
>> is there a way to write haskell code with indentation based expression
>> boundaries and evaluate that in ghci ?
>
> You can easily write a function to remove layout.
...
>
> You can run the 'unlayout' process over outgoing expressions in emacs
> using 'shell-command-to-string’.
Hi Rohan,
That is very promising but I don’t seem to know enough about lisp and emacs to
be able to cook a function to do what you suggest. I tried this
(defun hsc3-run-with-layout ()
"Send the current region to the interpreter with layout."
(interactive)
(let* ((s (region-string)))
(hsc3-send-string (shell-command-to-string (concatenate
"/Users/miguelnegrao/Development/Haskell/projects/unlayout/unlayout " s)))))
but I get this error:
ad-Orig-error: Not a sequence type name:
/Users/miguelnegrao/Development/Haskell/projects/unlayout/unlayout
best,
Miguel
_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art