yi-core-0.19.4: Yi editor core library

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010
Extensions | OverloadedStrings

Yi.Mode.Interactive

Description

Collection of `Mode`s for working with Haskell.

Synopsis

- mode :: Mode (Tree (Tok Token))
- interactId :: Text
- interactHistoryMove :: Int -> EditorM ()
- interactHistoryFinish :: EditorM ()
- interactHistoryStart :: EditorM ()
- getInputRegion :: BufferM Region
- getInput :: BufferM YiString
- setInput :: YiString -> BufferM ()
- spawnProcess :: String -> [String] -> YiM BufferRef
- spawnProcessMode :: Mode syntax -> FilePath -> [String] -> YiM BufferRef
- feedCommand :: YiM ()
- queryReply :: BufferRef -> String -> YiM YiString

# Documentation

mode :: Mode (Tree (Tok Token)) Source #

interactId :: Text Source #

interactHistoryMove :: Int -> EditorM () Source #

TODO: we're just converting back and forth here, `historyMoveGen` and friends need to migrate to YiString it seems.

interactHistoryFinish :: EditorM () Source #

interactHistoryStart :: EditorM () Source #

getInputRegion :: BufferM Region Source #

getInput :: BufferM YiString Source #

setInput :: YiString -> BufferM () Source #

spawnProcess :: String -> [String] -> YiM BufferRef Source #

Open a new buffer for interaction with a process.

spawnProcessMode :: Mode syntax -> FilePath -> [String] -> YiM BufferRef Source #

open a new buffer for interaction with a process, using any interactive-derived mode

feedCommand :: YiM () Source #

Send the type command to the process

queryReply :: BufferRef -> String -> YiM YiString Source #

Send command, receive reply