summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2020-10-12 18:33:21 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-10-20 00:48:29 -0400
commit6c7a5c0ca07085f31a3e2f8286bb57a0f35961cb (patch)
tree49130cc56d3e7b8e419a209ba5869a6d8c75217f /compiler/GHC/Hs
parentee5dcdf95a7c408e9c339aacebf89a007a735f8f (diff)
downloadhaskell-6c7a5c0ca07085f31a3e2f8286bb57a0f35961cb.tar.gz
Minor comments, update linear types docs
- Update comments: placeHolderTypeTc no longer exists "another level check problem" was a temporary comment from linear types - Use Mult type synonym (reported in #18676) - Mention multiplicity-polymorphic fields in linear types docs
Diffstat (limited to 'compiler/GHC/Hs')
-rw-r--r--compiler/GHC/Hs/Utils.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Hs/Utils.hs b/compiler/GHC/Hs/Utils.hs
index 5adcc140e2..9976334956 100644
--- a/compiler/GHC/Hs/Utils.hs
+++ b/compiler/GHC/Hs/Utils.hs
@@ -351,9 +351,10 @@ mkPsBindStmt pat body = BindStmt noExtField pat body
mkRnBindStmt pat body = BindStmt (XBindStmtRn { xbsrn_bindOp = noSyntaxExpr, xbsrn_failOp = Nothing }) pat body
mkTcBindStmt pat body = BindStmt (XBindStmtTc { xbstc_bindOp = noSyntaxExpr,
xbstc_boundResultType = unitTy,
+ -- unitTy is a dummy value
+ -- can't panic here: it's forced during zonking
xbstc_boundResultMult = Many,
xbstc_failOp = Nothing }) pat body
- -- don't use placeHolderTypeTc above, because that panics during zonking
emptyRecStmt' :: forall idL idR body. IsPass idR
=> XRecStmt (GhcPass idL) (GhcPass idR) body