Safe Haskell | Safe-Infered |
---|
- data IDEBuffer = IDEBuffer {
- fileName :: Maybe FilePath
- bufferName :: String
- addedIndex :: Int
- sourceView :: EditorView
- scrolledWindow :: ScrolledWindow
- modTime :: IORef (Maybe ClockTime)
- mode :: Mode
- data BufferState
- maybeActiveBuf :: IDEM (Maybe IDEBuffer)
- lastActiveBufferPane :: IDEM (Maybe PaneName)
- recentSourceBuffers :: IDEM [PaneName]
- getStartAndEndLineOfSelection :: EditorBuffer -> IDEM (Int, Int)
- inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
- inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
- doForSelectedLines :: [a] -> (EditorBuffer -> Int -> IDEM a) -> IDEM [a]
- data Mode = Mode {
- modeName :: String
- modeEditComment :: IDEAction
- modeEditUncomment :: IDEAction
- modeSelectedModuleName :: IDEM (Maybe String)
- modeEditToCandy :: (String -> Bool) -> IDEAction
- modeTransformToCandy :: (String -> Bool) -> EditorBuffer -> IDEAction
- modeEditFromCandy :: IDEAction
- modeEditKeystrokeCandy :: Maybe Char -> (String -> Bool) -> IDEAction
- modeEditInsertCode :: String -> EditorIter -> EditorBuffer -> IDEAction
- modeEditInCommentOrString :: String -> Bool
- modFromFileName :: Maybe FilePath -> Mode
- haskellMode :: Mode
- literalHaskellMode :: Mode
- cabalMode :: Mode
- otherMode :: Mode
- isHaskellMode :: Mode -> Bool
- withCurrentMode :: alpha -> (Mode -> IDEM alpha) -> IDEM alpha
- editComment :: IDEAction
- editUncomment :: IDEAction
- selectedModuleName :: IDEM (Maybe String)
- editToCandy :: IDEAction
- editFromCandy :: IDEAction
- editKeystrokeCandy :: Maybe Char -> IDEAction
- editInsertCode :: EditorBuffer -> EditorIter -> String -> IDEAction
Buffer Basics
A text editor pane description
IDEBuffer | |
|
data BufferState Source
inBufContext :: alpha -> IDEBuffer -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
inActiveBufContext :: alpha -> (Notebook -> EditorBuffer -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alphaSource
doForSelectedLines :: [a] -> (EditorBuffer -> Int -> IDEM a) -> IDEM [a]Source
Buffer Modes
Mode | |
|
modFromFileName :: Maybe FilePath -> ModeSource
Assumes
isHaskellMode :: Mode -> BoolSource
withCurrentMode :: alpha -> (Mode -> IDEM alpha) -> IDEM alphaSource
editInsertCode :: EditorBuffer -> EditorIter -> String -> IDEActionSource