mirror of
https://github.com/tfausak/witch.git
synced 2024-11-23 00:06:27 +03:00
74 lines
1.5 KiB
Plaintext
74 lines
1.5 KiB
Plaintext
cabal-version: 2.2
|
|
|
|
name: witch
|
|
version: 0.0.0.5
|
|
synopsis: Convert values from one type into another.
|
|
description: Witch converts values from one type into another.
|
|
|
|
build-type: Simple
|
|
category: Data
|
|
extra-source-files: CHANGELOG.markdown README.markdown
|
|
license-file: LICENSE.txt
|
|
license: ISC
|
|
maintainer: Taylor Fausak
|
|
|
|
source-repository head
|
|
location: https://github.com/tfausak/witch
|
|
type: git
|
|
|
|
common basics
|
|
build-depends: base >= 4.13.0 && < 4.16
|
|
default-language: Haskell2010
|
|
ghc-options:
|
|
-Weverything
|
|
-Wno-implicit-prelude
|
|
-Wno-missing-deriving-strategies
|
|
-Wno-missing-export-lists
|
|
-Wno-missing-exported-signatures
|
|
-Wno-redundant-constraints
|
|
-Wno-safe
|
|
-Wno-unsafe
|
|
|
|
if impl(ghc >= 8.10)
|
|
ghc-options:
|
|
-Wno-missing-safe-haskell-mode
|
|
-Wno-prepositive-qualified-module
|
|
|
|
library
|
|
import: basics
|
|
|
|
build-depends:
|
|
, template-haskell >= 2.15.0 && < 2.18
|
|
exposed-modules:
|
|
Witch
|
|
Witch.Cast
|
|
Witch.Identity
|
|
Witch.Instances
|
|
Witch.Lift
|
|
Witch.TryCast
|
|
Witch.TryCastException
|
|
Witch.Utility
|
|
hs-source-dirs: src/lib
|
|
|
|
if impl(ghc >= 9.0)
|
|
hs-source-dirs: src/ghc-9.0
|
|
else
|
|
if impl(ghc >= 8.10)
|
|
hs-source-dirs: src/ghc-8.10
|
|
else
|
|
hs-source-dirs: src/ghc-8.8
|
|
|
|
test-suite test
|
|
import: basics
|
|
|
|
build-depends:
|
|
, hspec >= 2.7.9 && < 2.8
|
|
, witch
|
|
ghc-options:
|
|
-rtsopts
|
|
-threaded
|
|
-Wno-all-missed-specialisations
|
|
hs-source-dirs: src/test
|
|
main-is: Main.hs
|
|
type: exitcode-stdio-1.0
|