leksah-0.15.0.2: Haskell IDE written in Haskell

Safe HaskellNone
LanguageHaskell98

IDE.Pane.SourceBuffer

Description

The source editor part of Leksah

Synopsis

Documentation

data IDEBuffer Source

A text editor pane description

Constructors

forall editor . TextEditor editor => IDEBuffer 

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

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

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