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

Safe HaskellSafe-Inferred

Language.Haskell.Modules.Util.SrcLoc

Synopsis

Documentation

increaseSrcLoc :: String -> SrcLoc -> SrcLocSource

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

srcPairText :: SrcLoc -> SrcLoc -> String -> (String, String)Source

Given a beginning and end location, and a string which starts at the beginning location, return a (beforeend,afterend) pair.

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

Build a tree of SrcSpanInfo