ormolu-0.3.0.0: A formatter for Haskell source code

Ormolu.Processing.Common

Description

Common definitions for pre- and post- processing.

Synopsis

# Documentation

Remove indentation from a given String. Return the input with indentation removed and the detected indentation level.

Add indentation to a Text.

All lines in the region specified by RegionDeltas.

Arguments

 :: 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.

Arguments

 :: Int Total number of lines -> IntSet -> [RegionDeltas]

Convert a set of line indices into disjoint RegionDeltas