ghc-byteorder: "GHC.ByteOrder" API Compatibility Layer

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

This package transparently supplies the GHC.ByteOrder API as provided in base- for legacy GHC releases which didn't provide it yet (i.e. GHC 7.0 through GHC 8.2).

This release provides a backported GHC.ByteOrder module. For GHC 8.4 and later a different release of ghc-byteorder (with the same minor version) is eligible by the Cabal solver which reexports GHC.ByteOrder from base via Cabal's reexported-modules mechanism.

In order to use this compatibility layer, simply declare a dependency on ghc-byteorder in your .cabal package description like so

build-depends: ghc-byteorder ^>=

And your code will be able to access this respective API version of the module via the usual

import GHC.ByteOrder



Change log None available
Dependencies base (>=4.3 && <4.11) [details]
License BSD-3-Clause[multiple license files]
Maintainer Herbert Valerio Riedel <>
Category FFI
Bug tracker
Source repo head: git clone
Uploaded by HerbertValerioRiedel at 2020-05-15T17:24:05Z



Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees