Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- reprint :: (Monad m, Data p) => Refactoring m -> p -> SourceText -> m SourceText
- subtext :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ByteString -> (ByteString, ByteString)
- takeBounds :: (Position, Position) -> SourceText -> (SourceText, SourceText)
Documentation
reprint :: (Monad m, Data p) => Refactoring m -> p -> SourceText -> m SourceText Source #
subtext :: (Int, Int) -> (Int, Int) -> (Int, Int) -> ByteString -> (ByteString, ByteString) Source #
Split a text.
Returns a tuple containing: 1. the bit of input text between upper and lower bounds 2. the remaining input text
Takes: 1. current cursor position 2. lower bound 3. upper bound 4. input text
takeBounds :: (Position, Position) -> SourceText -> (SourceText, SourceText) Source #