X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypecheck%2FTcMonad.lhs;fp=ghc%2Fcompiler%2Ftypecheck%2FTcMonad.lhs;h=dceff864fb232890019ce1f791f05c2b3c31f034;hb=10fcd78ccde892feccda3f5eacd221c1de75feea;hp=11cb6bdab94ddde75cfa402af7f412360ecae200;hpb=723ab3364061d8b0d9fd622feaa1d31eb1281f6a;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcMonad.lhs b/ghc/compiler/typecheck/TcMonad.lhs index 11cb6bd..dceff86 100644 --- a/ghc/compiler/typecheck/TcMonad.lhs +++ b/ghc/compiler/typecheck/TcMonad.lhs @@ -659,6 +659,7 @@ data InstOrigin | PatOrigin RenamedPat | ArithSeqOrigin RenamedArithSeqInfo -- [x..], [x..y] etc + | PArrSeqOrigin RenamedArithSeqInfo -- [:x..y:] and [:x,y..z:] | SignatureOrigin -- A dict created from a type signature | Rank2Origin -- A dict created when typechecking the argument @@ -715,6 +716,8 @@ pprInstLoc (orig, locn, ctxt) = hsep [ptext SLIT("the pattern"), quotes (ppr pat)] pp_orig (ArithSeqOrigin seq) = hsep [ptext SLIT("the arithmetic sequence"), quotes (ppr seq)] + pp_orig (PArrSeqOrigin seq) + = hsep [ptext SLIT("the parallel array sequence"), quotes (ppr seq)] pp_orig (SignatureOrigin) = ptext SLIT("a type signature") pp_orig (Rank2Origin)