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

[ bsd3, ffi, library ] [ Propose Tags ]

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 reexports GHC.ByteOrder from base via Cabal's reexported-modules mechanism. For GHC 8.2 and earlier a different release of ghc-byteorder (with the same minor version) is eligible by the Cabal solver with a backported GHC.ByteOrder module.

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


Versions [faq],
Dependencies base (>=4.11 && <4.15) [details]
License BSD-3-Clause
Maintainer Herbert Valerio Riedel <>
Category FFI
Bug tracker
Source repo head: git clone
Uploaded by HerbertValerioRiedel at 2020-05-15T17:21:30Z
Distributions NixOS:
Downloads 390 total (236 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
Last success reported on 2020-05-15 [all 2 reports]


  • GHC
    • GHC.ByteOrder


Maintainer's Corner

For package maintainers and hackage trustees