X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FSrcLoc.lhs;h=85b9b2e068336237b4c807383c291675ba6d6332;hb=7bb3d1fc79521d591cd9f824893963141a7997b6;hp=a748b478225b3560b06eab0e1e6c3c8526c0b028;hpb=fc9bbbab3fe56cf0ff5723abbdb0f496d257f34e;p=ghc-hetmet.git diff --git a/compiler/basicTypes/SrcLoc.lhs b/compiler/basicTypes/SrcLoc.lhs index a748b47..85b9b2e 100644 --- a/compiler/basicTypes/SrcLoc.lhs +++ b/compiler/basicTypes/SrcLoc.lhs @@ -58,7 +58,7 @@ module SrcLoc ( -- ** Constructing Located noLoc, - mkGeneralLocated, + mkGeneralLocated, -- ** Deconstructing Located getLoc, unLoc, @@ -296,7 +296,7 @@ isGoodSrcSpan SrcSpanPoint{} = True isGoodSrcSpan _ = False isOneLineSpan :: SrcSpan -> Bool --- ^ True if the span is known to straddle more than one line. +-- ^ True if the span is known to straddle only one line. -- For "bad" 'SrcSpan', it returns False isOneLineSpan s | isGoodSrcSpan s = srcSpanStartLine s == srcSpanEndLine s