summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-03-06 12:20:06 -0500
committerBen Gamari <ben@smart-cactus.org>2017-03-06 12:44:15 -0500
commit8ca4bb1ce9d94bb9f519f620c1f5ed8063007d33 (patch)
treecd409ca73a6af00f2b298bb01e7dea026242622d /compiler/utils
parentc02d03de839c4ee0acbd52dad575bc5e27972595 (diff)
downloadhaskell-8ca4bb1ce9d94bb9f519f620c1f5ed8063007d33.tar.gz
Read COMPLETE sets from external packages
Currently, `COMPLETE` pragmas are not read from external packages at all, which quite limits their usefulness. This extends `ExternalPackageState` to include `COMPLETE` sets from other packages, and plumbs around the appropriate values to make it work the way you'd expect it to. Requires a `binary` submodule update. Fixes #13350. Test Plan: make test TEST=T13350 Reviewers: rwbarton, mpickering, austin, simonpj, bgamari Reviewed By: simonpj Subscribers: simonpj, thomie Differential Revision: https://phabricator.haskell.org/D3257
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/Binary.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/utils/Binary.hs b/compiler/utils/Binary.hs
index a1ccee3ae7..9d385d23ea 100644
--- a/compiler/utils/Binary.hs
+++ b/compiler/utils/Binary.hs
@@ -674,7 +674,6 @@ instance Binary KindRep where
put_ bh (KindRepFun a b) = putByte bh 3 >> put_ bh a >> put_ bh b
put_ bh (KindRepTYPE r) = putByte bh 4 >> put_ bh r
put_ bh (KindRepTypeLit sort r) = putByte bh 5 >> put_ bh sort >> put_ bh r
- put_ _ _ = fail "Binary.putKindRep: impossible"
get bh = do
tag <- getByte bh