-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Hackage at 2020-05-15T17:34:35Z
- Loading branch information
1 parent
44bbe93
commit 4c409c7
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package-hashes":{"MD5":"e5a3da050e1c4830ca9bdea5739e1a4e","Skein512_512":"867c2fc5f851137d66b61fab5836f55a5de1ff7f6c581b8728e228df4ac7fbe27647960da4f9fd3607f24e0f55e154311aea3b2c2d2bdaa11efde0c0b023ae30","SHA1":"0804fc4145302b6ee9a8effeacff265352966a26","SHA512":"342c2480868f862f45265045c46ea0f5611e1d62bdbbc73430fea7ec4a0b9d46c6b700268d825996a23239c36c8110c698e494f6e0a344529a9d53bf16432d10","SHA256":"a7c6f9018ab8e66a409f2ff362c162e24ec78fdeb5adb8e164efbe2780144bbd"},"package-locations":["https://hackage.haskell.org/package/ghc-byteorder-4.11.0.0/ghc-byteorder-4.11.0.0.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/ghc-byteorder-4.11.0.0.tar.gz"],"package-size":3722} |