Safe Haskell | None |
---|
- type SnippetCmd = RWST (Int, Int) [MarkInfo] () BufferM
- data SnippetMark
- = SimpleMark !Int
- | ValuedMark !Int String
- | DependentMark !Int
- data MarkInfo
- newtype BufferMarks = BufferMarks {
- bufferMarks :: [MarkInfo]
- newtype DependentMarks = DependentMarks {}
- cursor :: Int -> SnippetMark
- cursorWith :: Int -> String -> SnippetMark
- dep :: Int -> SnippetMark
- isDependentMark :: MarkInfo -> Bool
- bufferMarkers :: MarkInfo -> [Mark]
- class MkSnippetCmd a b | a -> b where
- mkSnippetCmd :: a -> SnippetCmd b
- mkMark :: MonadTrans t => t BufferM Mark
- text :: String -> SnippetCmd ()
- (&) :: (MkSnippetCmd a any, MkSnippetCmd b c) => a -> b -> SnippetCmd c
- (&>) :: (MkSnippetCmd a b, MkSnippetCmd c d) => a -> (b -> c) -> SnippetCmd d
- runSnippet :: Bool -> SnippetCmd a -> BufferM a
- updateUpdatedMarks :: [Update] -> BufferM ()
- findEditedMarks :: [Update] -> BufferM [MarkInfo]
- dependentSiblings :: MarkInfo -> [[MarkInfo]] -> [MarkInfo]
- updateDependents :: MarkInfo -> BufferM ()
- updateDependents' :: MarkInfo -> [[MarkInfo]] -> BufferM ()
- markText :: MarkInfo -> BufferM String
- setMarkText :: String -> MarkInfo -> BufferM ()
- withSimpleRegion :: MarkInfo -> (Region -> BufferM Region) -> BufferM Region
- markRegion :: MarkInfo -> BufferM Region
- safeMarkRegion :: MarkInfo -> BufferM Region
- adjMarkRegion :: MarkInfo -> BufferM Region
- findOverlappingMarksWith :: (MarkInfo -> BufferM Region) -> ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- findOverlappingMarks :: ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- regionsOverlappingMarks :: Bool -> Region -> MarkInfo -> BufferM [MarkInfo]
- overlappingMarks :: Bool -> Bool -> MarkInfo -> BufferM [MarkInfo]
- allOverlappingMarks :: Bool -> MarkInfo -> BufferM [MarkInfo]
- dependentOverlappingMarks :: Bool -> MarkInfo -> BufferM [MarkInfo]
- nextBufferMark :: Bool -> BufferM (Maybe MarkInfo)
- isDependentMarker :: MonadState FBuffer m => Mark -> m Bool
- safeDeleteMarkB :: Mark -> BufferM ()
- moveToNextBufferMark :: Bool -> BufferM ()
- newtype SupertabExt = Supertab (String -> Maybe (BufferM ()))
- superTab :: MonadInteract m Action Event => Bool -> SupertabExt -> m ()
- fromSnippets :: Bool -> [(String, SnippetCmd ())] -> SupertabExt
- snippet :: MkSnippetCmd a b => a -> SnippetCmd b
Documentation
data SnippetMark Source
newtype BufferMarks Source
newtype DependentMarks Source
cursor :: Int -> SnippetMarkSource
cursorWith :: Int -> String -> SnippetMarkSource
dep :: Int -> SnippetMarkSource
bufferMarkers :: MarkInfo -> [Mark]Source
class MkSnippetCmd a b | a -> b whereSource
mkSnippetCmd :: a -> SnippetCmd bSource
MkSnippetCmd String () | |
MkSnippetCmd SnippetMark () | |
MkSnippetCmd (SnippetCmd a) a |
mkMark :: MonadTrans t => t BufferM MarkSource
text :: String -> SnippetCmd ()Source
(&) :: (MkSnippetCmd a any, MkSnippetCmd b c) => a -> b -> SnippetCmd cSource
(&>) :: (MkSnippetCmd a b, MkSnippetCmd c d) => a -> (b -> c) -> SnippetCmd dSource
runSnippet :: Bool -> SnippetCmd a -> BufferM aSource
updateUpdatedMarks :: [Update] -> BufferM ()Source
findEditedMarks :: [Update] -> BufferM [MarkInfo]Source
dependentSiblings :: MarkInfo -> [[MarkInfo]] -> [MarkInfo]Source
findOverlappingMarksWith :: (MarkInfo -> BufferM Region) -> ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]Source
findOverlappingMarks :: ([[MarkInfo]] -> [MarkInfo]) -> Bool -> Region -> MarkInfo -> BufferM [MarkInfo]Source
isDependentMarker :: MonadState FBuffer m => Mark -> m BoolSource
safeDeleteMarkB :: Mark -> BufferM ()Source
superTab :: MonadInteract m Action Event => Bool -> SupertabExt -> m ()Source
fromSnippets :: Bool -> [(String, SnippetCmd ())] -> SupertabExtSource
Convert snippet description list into a SuperTab extension
snippet :: MkSnippetCmd a b => a -> SnippetCmd bSource