-
Notifications
You must be signed in to change notification settings - Fork 0
/
unpacked-maybe-numeric.cabal
83 lines (74 loc) · 2.58 KB
/
unpacked-maybe-numeric.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cabal-version: 3.0
name: unpacked-maybe-numeric
version: 0.1.3.1
synopsis: maybes of numeric values with fewer indirections
description:
This library provides one `Maybe` type per the usual numeric types:
Float, Double, Complex {Float|Double}, Int{8|16|32|64}, and Word{8|16|32|64|128}
.
All of the numeric types inside the `Maybe` are unboxed, while the `Maybe` value
itself is represented as an Unboxed Sum. However, for sub-machine-size Int/Word values,
the `Maybe` is just a wrapper around the underlying type, with out-of-bounds corresponding
to the `Nothing` value. Thus, the use of these constructors is unsafe, as this is only
checked internally.
homepage: https://github.com/byteverse/unpacked-maybe-numeric
bug-reports: https://github.com/byteverse/unpacked-maybe-numeric/issues
author: Andrew Martin, chessai
maintainer: [email protected], [email protected]
category: Data
copyright: 2018 Andrew Martin
license: BSD-3-Clause
license-file: LICENSE
build-type: Simple
extra-doc-files:
CHANGELOG.md
README.md
tested-with: GHC ==9.4.8 || ==9.6.3 || ==9.8.1
common build-settings
default-language: Haskell2010
ghc-options: -Wall -Wunused-packages
library
import: build-settings
exposed-modules:
Data.Maybe.Unpacked.Numeric.Complex.Double
Data.Maybe.Unpacked.Numeric.Complex.Float
Data.Maybe.Unpacked.Numeric.Double
Data.Maybe.Unpacked.Numeric.Float
Data.Maybe.Unpacked.Numeric.Int
Data.Maybe.Unpacked.Numeric.Int16
Data.Maybe.Unpacked.Numeric.Int32
Data.Maybe.Unpacked.Numeric.Int64
Data.Maybe.Unpacked.Numeric.Int8
Data.Maybe.Unpacked.Numeric.Word
Data.Maybe.Unpacked.Numeric.Word128
Data.Maybe.Unpacked.Numeric.Word16
Data.Maybe.Unpacked.Numeric.Word32
Data.Maybe.Unpacked.Numeric.Word64
Data.Maybe.Unpacked.Numeric.Word8
hs-source-dirs: src
build-depends:
, base >=4.17.1.0 && <5
, wide-word >=0.1.0.8 && <0.2
, word-compat >=0.0.4 && <0.1
ghc-options: -O2
test-suite spec
import: build-settings
type: exitcode-stdio-1.0
main-is: spec.hs
hs-source-dirs: test
build-depends:
, base
, unpacked-maybe-numeric
test-suite laws
import: build-settings
type: exitcode-stdio-1.0
main-is: laws.hs
hs-source-dirs: test
build-depends:
, base
, QuickCheck
, quickcheck-classes
, unpacked-maybe-numeric
source-repository head
type: git
location: git://github.com/byteverse/unpacked-maybe-numeric.git