diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-05-15 14:21:04 +0200 |
---|---|---|
committer | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-05-16 08:16:53 -0400 |
commit | 466a61c0f42f1e8b340c05fb03abde289fbf942c (patch) | |
tree | 88390f370eab1bf0db853a7daae60c5a31c34cf0 /distrib/cross-port | |
parent | 568d7279a80cf945271f0659f11a94eea3f1433d (diff) | |
download | haskell-wip/andreask/iface_magic_numbers.tar.gz |
Don't variable-length encode magic iface constant.wip/andreask/iface_magic_numbers
We changed to use variable length encodings for many types by default,
including Word32. This makes sense for numbers but not when Word32 is
meant to represent four bytes.
I added a FixedLengthEncoding newtype to Binary who's instances
interpret their argument as a collection of bytes instead of a number.
We then use this when writing/reading magic numbers to the iface file.
I also took the libery to remove the dummy iface field.
This fixes #18180.
Diffstat (limited to 'distrib/cross-port')
0 files changed, 0 insertions, 0 deletions