camfort-1.0.1: CamFort - Cambridge Fortran infrastructure
Safe HaskellNone
LanguageHaskell2010

Camfort.Reprint

Synopsis

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 #