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

Safe HaskellSafe-Inferred
LanguageHaskell98

Language.Haskell.Modules.Util.SrcLoc

Synopsis

Documentation

increaseSrcLoc :: String -> SrcLoc -> SrcLoc Source

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 a Source

Build a tree of SrcSpanInfo