From: Simon Marlow Date: Mon, 20 Oct 2008 10:24:22 +0000 (+0000) Subject: Re-export Located(..) and related functions X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=8690b84f0bbcae6351d1a664d96db9bc60b81b0f;p=ghc-hetmet.git Re-export Located(..) and related functions So that clients don't need to import SrcLoc --- diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 82fbf5b..3a1cfe5 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -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,