base: Introduce GHC.ByteOrder
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 24 Jul 2017 23:54:37 +0000 (19:54 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 25 Jul 2017 01:06:13 +0000 (21:06 -0400)
commit58545fde018460a2e9d05a8659951acfb277209f
treeda655fd49a5da068b39b370caa2a35c53788a2a8
parent2183ac16a98146bb673b5530ca154499a1c6166e
base: Introduce GHC.ByteOrder

This provides a ByteOrder type as well as a targetByteOrder value, which
indicates the byte ordering used by the target machine. We might also
consider exposing this via Data.Bits if the CLC is so inclined.

Test Plan: Needs test

Reviewers: hvr, RyanGlScott, austin

Reviewed By: hvr, RyanGlScott

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3786
libraries/base/GHC/ByteOrder.hs [new file with mode: 0644]
libraries/base/base.cabal