-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghc-byteorder.cabal
61 lines (49 loc) · 1.75 KB
/
ghc-byteorder.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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