packages feed

ghc-byteorder-4.11.0.0: ghc-byteorder.cabal

cabal-version: 1.12
name: ghc-byteorder
version: 4.11.0.0

build-type: Simple
license: BSD3
license-files: LICENSE LICENSE.base
maintainer: Herbert Valerio Riedel <hvr@gnu.org>
bug-reports: https://github.com/hvr/ghc-byteorder/issues
synopsis: "GHC.ByteOrder" API Compatibility Layer
category: FFI
description:
  This package transparently supplies the "GHC.ByteOrder" API as provided in @base-4.11.0.0@ 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 ^>= 4.11.0.0
  .
  And your code will be able to access this respective API version of the module via the usual
  .
  > import GHC.ByteOrder
  .
  mechanism.

source-repository head
  type:     git
  location: https://github.com/hvr/ghc-byteorder.git

library
  default-language: Haskell2010
  other-extensions: CPP
  if impl(ghc >= 7.2)
    default-extensions: Safe

  hs-source-dirs: src
  exposed-modules: GHC.ByteOrder

  build-depends: base >=4.3 && <4.11

  -- This package relies on GHC-isms
  if !(impl(ghc) || impl(ghcjs))
    build-depends: base<0

  -- place-holder for GHCJS-specific revisions
  if impl(ghcjs)
    build-depends: base

  ghc-options: -Wall

test-suite tests
  type: exitcode-stdio-1.0
  default-language: Haskell2010

  hs-source-dirs: src-test
  main-is: tests.hs

  build-depends: base, ghc-byteorder

  ghc-options: -Wall