Use proper primitives in Utils.Binary
authoralexbiehl <alex.biehl@gmail.com>
Mon, 6 Feb 2017 01:23:09 +0000 (20:23 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 6 Feb 2017 01:23:09 +0000 (20:23 -0500)
commitfbcef83a3aa130d976a201f2a21c5afc5a43d000
treee770203693d5e5d479b702e1da662b026aea2169
parenta2f39da0461b5da62a9020b0d98a1ce2765dd700
Use proper primitives in Utils.Binary

`Word{16,32,64}` are implemented using `getWord8`. This patch introduces
`getWord{16,32,64}` and `putWord{16,32,64}`. This is nicer and
probably a bit faster.

Reviewers: bgamari, austin

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2908
compiler/utils/Binary.hs