Safe Haskell | None |
---|---|
Language | Haskell98 |
The source editor part of Leksah
- data IDEBuffer = forall editor . TextEditor editor => IDEBuffer {
- fileName :: Maybe FilePath
- bufferName :: Text
- addedIndex :: Int
- sourceView :: EditorView editor
- scrolledWindow :: ScrolledWindow
- modTime :: IORef (Maybe UTCTime)
- mode :: Mode
- data BufferState
- allBuffers :: MonadIDE m => m [IDEBuffer]
- maybeActiveBuf :: IDEM (Maybe IDEBuffer)
- selectSourceBuf :: FilePath -> IDEM (Maybe IDEBuffer)
- goToSourceDefinition :: FilePath -> Location -> IDEM (Maybe IDEBuffer)
- goToSourceDefinition' :: FilePath -> Location -> IDEM (Maybe IDEBuffer)
- goToDefinition :: Descr -> IDEAction
- insertInBuffer :: Descr -> IDEAction
- replaceHLintSource :: (Bool, Int) -> (Text, Idea) -> IDEM (Bool, Int)
- fileNew :: IDEAction
- fileOpenThis :: FilePath -> IDEAction
- fileOpen :: IDEAction
- filePrint :: IDEAction
- fileRevert :: IDEAction
- fileClose :: IDEM Bool
- fileCloseAll :: (IDEBuffer -> IDEM Bool) -> IDEM Bool
- fileCloseAllButPackage :: IDEAction
- fileCloseAllButWorkspace :: IDEAction
- fileSave :: Bool -> IDEM Bool
- fileSaveAll :: MonadIDE m => (IDEBuffer -> m Bool) -> m Bool
- fileSaveBuffer :: MonadIDE m => TextEditor editor => Bool -> Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> m Bool
- fileCheckAll :: MonadIDE m => (IDEBuffer -> m [alpha]) -> m [alpha]
- editUndo :: IDEAction
- editRedo :: IDEAction
- editCut :: IDEAction
- editCopy :: IDEAction
- editPaste :: IDEAction
- editDelete :: IDEAction
- editSelectAll :: IDEAction
- editComment :: IDEAction
- editUncomment :: IDEAction
- editShiftRight :: IDEAction
- editShiftLeft :: IDEAction
- editToCandy :: IDEAction
- editFromCandy :: IDEAction
- editKeystrokeCandy :: Maybe Char -> IDEAction
- editCandy :: ReaderT IDERef IO ()
- updateStyle :: TextEditor editor => EditorBuffer editor -> IDEAction
- updateStyle' :: IDEBuffer -> IDEAction
- addLogRef :: LogRef -> IDEAction
- removeBuildLogRefs :: FilePath -> FilePath -> IDEAction
- resolveActiveHLint :: IDEM Bool
- hlintSettings :: IDEPackage -> IDEM (ParseFlags, [Classify], Hint)
- hlintBuffer :: IDEBuffer -> IDEAction
- markRefInSourceBuf :: IDEBuffer -> LogRef -> Bool -> IDEAction
- inBufContext :: MonadIDE m => alpha -> IDEBuffer -> (forall editor. TextEditor editor => Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> m alpha) -> m alpha
- inActiveBufContext :: alpha -> (forall editor. TextEditor editor => Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha
- align :: Char -> IDEAction
- startComplete :: IDEAction
- selectedText :: IDEM (Maybe Text)
- selectedTextOrCurrentLine :: IDEM (Maybe Text)
- insertTextAfterSelection :: Text -> IDEAction
- selectedModuleName :: IDEM (Maybe Text)
- selectedLocation :: IDEM (Maybe (Int, Int))
- recentSourceBuffers :: IDEM [PaneName]
- newTextBuffer :: PanePath -> Text -> Maybe FilePath -> IDEM (Maybe IDEBuffer)
- belongsToPackages :: MonadIDE m => IDEBuffer -> m [IDEPackage]
- belongsToWorkspace :: MonadIDE m => IDEBuffer -> m Bool
- getIdentifierUnderCursorFromIter :: TextEditor editor => (EditorIter editor, EditorIter editor) -> IDEM (EditorIter editor, EditorIter editor)
Documentation
A text editor pane description
forall editor . TextEditor editor => IDEBuffer | |
|
data BufferState Source
allBuffers :: MonadIDE m => m [IDEBuffer] Source
goToDefinition :: Descr -> IDEAction Source
insertInBuffer :: Descr -> IDEAction Source
fileOpenThis :: FilePath -> IDEAction Source
fileSaveBuffer :: MonadIDE m => TextEditor editor => Bool -> Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> m Bool Source
fileCheckAll :: MonadIDE m => (IDEBuffer -> m [alpha]) -> m [alpha] Source
updateStyle :: TextEditor editor => EditorBuffer editor -> IDEAction Source
updateStyle' :: IDEBuffer -> IDEAction Source
removeBuildLogRefs :: FilePath -> FilePath -> IDEAction Source
hlintSettings :: IDEPackage -> IDEM (ParseFlags, [Classify], Hint) Source
hlintBuffer :: IDEBuffer -> IDEAction Source
inBufContext :: MonadIDE m => alpha -> IDEBuffer -> (forall editor. TextEditor editor => Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> m alpha) -> m alpha Source
inActiveBufContext :: alpha -> (forall editor. TextEditor editor => Notebook -> EditorView editor -> EditorBuffer editor -> IDEBuffer -> Int -> IDEM alpha) -> IDEM alpha Source
selectedText :: IDEM (Maybe Text) Source
newTextBuffer :: PanePath -> Text -> Maybe FilePath -> IDEM (Maybe IDEBuffer) Source
Tries to create a new text buffer, fails when the given filepath does not exist or when it is not a text file.
belongsToPackages :: MonadIDE m => IDEBuffer -> m [IDEPackage] Source
Returns the package, to which this buffer belongs, if possible
belongsToWorkspace :: MonadIDE m => IDEBuffer -> m Bool Source
getIdentifierUnderCursorFromIter :: TextEditor editor => (EditorIter editor, EditorIter editor) -> IDEM (EditorIter editor, EditorIter editor) Source