Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common definitions for pre- and post- processing.
Synopsis
- removeIndentation :: String -> (String, Int)
- reindent :: Int -> Text -> Text
- linesInRegion :: RegionDeltas -> String -> String
- regionInbetween :: Int -> RegionDeltas -> RegionDeltas -> RegionDeltas
- intSetToRegions :: Int -> IntSet -> [RegionDeltas]
Documentation
removeIndentation :: String -> (String, Int) Source #
Remove indentation from a given String
. Return the input with
indentation removed and the detected indentation level.
linesInRegion :: RegionDeltas -> String -> String Source #
All lines in the region specified by RegionDeltas
.
:: Int | Total number of lines |
-> RegionDeltas | |
-> RegionDeltas | |
-> RegionDeltas |
Get the region after the end of the first and till the end of the second region.
:: Int | Total number of lines |
-> IntSet | |
-> [RegionDeltas] |
Convert a set of line indices into disjoint RegionDelta
s