Skip to content

Commit

Permalink
Cabal clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjosephmckeon committed Feb 6, 2024
1 parent 3621c6a commit 92bac59
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions unpacked-maybe-numeric.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 2.2
name: unpacked-maybe-numeric
version: 0.1.3.1
synopsis: maybes of numeric values with fewer indirections
cabal-version: 2.2
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}
Expand All @@ -12,18 +12,25 @@ description:
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-source-files: README.md
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

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
Expand All @@ -41,32 +48,28 @@ library
Data.Maybe.Unpacked.Numeric.Word64
Data.Maybe.Unpacked.Numeric.Word8

hs-source-dirs: src
hs-source-dirs: src
build-depends:
, base >=4.17.1.0 && <5
, primitive >=0.6.4
, wide-word >=0.1.0.8 && <0.2
, word-compat >=0.0.4 && <0.1

ghc-options: -Wall -O2
default-language: Haskell2010
ghc-options: -O2

test-suite spec
default-language: Haskell2010
ghc-options: -Wall
type: exitcode-stdio-1.0
main-is: spec.hs
hs-source-dirs: test
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
default-language: Haskell2010
ghc-options: -Wall
type: exitcode-stdio-1.0
main-is: laws.hs
hs-source-dirs: test
import: build-settings
type: exitcode-stdio-1.0
main-is: laws.hs
hs-source-dirs: test
build-depends:
, base
, QuickCheck
Expand Down

0 comments on commit 92bac59

Please sign in to comment.