module-management-0.9.3.1: Clean up module imports, split and merge modules

Safe HaskellNone

Language.Haskell.Modules.Util.SrcLoc

Synopsis

Documentation

increaseSrcLoc :: String -> SrcLoc -> SrcLocSource

Update a SrcLoc to move it from l past the string argument.

srcPairTextHead :: SrcLoc -> SrcLoc -> String -> StringSource

Return the beginning portion of s which the span b thru e covers, assuming that the beginning of s is at position b - that is, that the prefix of s from (1,1) to b has already been removed.

srcPairTextTail :: SrcLoc -> SrcLoc -> String -> StringSource

Like srcPairTextHead, but returns the tail of s instead of the head.

makeTree :: (HasSpanInfo a, Show a, Eq a, Ord a) => Set a -> Tree aSource

Build a tree of SrcSpanInfo