Re-export Located(..) and related functions
authorSimon Marlow <marlowsd@gmail.com>
Mon, 20 Oct 2008 10:24:22 +0000 (10:24 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 20 Oct 2008 10:24:22 +0000 (10:24 +0000)
So that clients don't need to import SrcLoc

compiler/main/GHC.hs

index 82fbf5b..3a1cfe5 100644 (file)
@@ -196,6 +196,20 @@ module GHC (
         srcSpanStartLine, srcSpanEndLine, 
         srcSpanStartCol, srcSpanEndCol,
 
+        -- ** Located
+       Located(..),
+
+       -- *** Constructing Located
+       noLoc, mkGeneralLocated,
+
+       -- *** Deconstructing Located
+       getLoc, unLoc,
+
+       -- *** Combining and comparing Located values
+       eqLocated, cmpLocated, combineLocs, addCLoc,
+        leftmost_smallest, leftmost_largest, rightmost,
+        spans, isSubspanOf,
+
        -- * Exceptions
        GhcException(..), showGhcException,