summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2017-03-02 20:16:28 -0500
committerBen Gamari <ben@smart-cactus.org>2017-03-02 20:16:29 -0500
commit0d2f733050ff656b827351108d988e09abc363fc (patch)
tree0ee6ec20903f22cbf8ace58841c0501376c3385c /compiler/utils
parent615ded12f47d3685606bcfabb4f1980e748be1d9 (diff)
downloadhaskell-0d2f733050ff656b827351108d988e09abc363fc.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. 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