Fix HPC column numbers, following the column number changes in GHC
[ghc-hetmet.git] / compiler / deSugar / Coverage.lhs
index 2136d01..b161a21 100644 (file)
@@ -742,9 +742,9 @@ mkHpcPos pos
    start = srcSpanStart pos
    end   = srcSpanEnd pos
    hpcPos = toHpcPos ( srcLocLine start
-                    , srcLocCol start + 1
+                    , srcLocCol start
                     , srcLocLine end
-                    , srcLocCol end
+                    , srcLocCol end - 1
                     )
 
 hpcSrcSpan :: SrcSpan