diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2017-03-06 12:20:06 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-06 12:44:15 -0500 |
| commit | 8ca4bb1ce9d94bb9f519f620c1f5ed8063007d33 (patch) | |
| tree | cd409ca73a6af00f2b298bb01e7dea026242622d /compiler/utils | |
| parent | c02d03de839c4ee0acbd52dad575bc5e27972595 (diff) | |
| download | haskell-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.hs | 1 |
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 |
