Status: Accepted
Owner: gwern0
Labels: Type-Enhancement Priority-Low

New issue 205 by gwern0: Show GHCi buffer on loading it
http://code.google.com/p/yi-editor/issues/detail?id=205

In the current Haskell mode, one can mimic Emacs's haskell-mode in part by
having a keybinding like:

                         modeKeymap = (choice [ctrlCh 'c' ?>> ctrl (char
'l') ?>>! ghciLoadBuffer,

This does load the current buffer's file into GHCi, and is good. But I've
noticed that it does so in the background: one has to C-x b to the ghci
buffer to see what actually happens.
In Emacs haskell-mode, instead the screen is split in half and the ghci
buffer occupies the lower half.
What I would like is essentially for ghciLoadBuffer to call 'splitE' and
show ghci in the new frame.
(I looked into doing this myself, but I don't understand the internals at
all - splitE is defined as YiM (), which is some sort of keyboard action,
but ghciLoadBuffer needs a return type of EditorM which is some entirely
other monad. I have no idea how to do YiM a -> EditorM a.)

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to