2021-04-18 17:27:12 +03:00
|
|
|
cabal-version: 2.2
|
2020-11-14 19:54:45 +03:00
|
|
|
|
2021-04-10 20:34:26 +03:00
|
|
|
name: witch
|
2021-05-27 14:32:13 +03:00
|
|
|
version: 0.3.2.1
|
2021-04-10 20:34:26 +03:00
|
|
|
synopsis: Convert values from one type into another.
|
|
|
|
description: Witch converts values from one type into another.
|
|
|
|
|
2020-11-14 19:54:45 +03:00
|
|
|
build-type: Simple
|
|
|
|
category: Data
|
2020-11-14 20:45:00 +03:00
|
|
|
extra-source-files: CHANGELOG.markdown README.markdown
|
2020-11-14 19:54:45 +03:00
|
|
|
license-file: LICENSE.txt
|
|
|
|
license: ISC
|
|
|
|
maintainer: Taylor Fausak
|
|
|
|
|
|
|
|
source-repository head
|
|
|
|
location: https://github.com/tfausak/witch
|
|
|
|
type: git
|
|
|
|
|
2021-04-18 17:27:12 +03:00
|
|
|
common basics
|
2021-04-18 17:50:39 +03:00
|
|
|
build-depends:
|
2021-05-27 03:03:34 +03:00
|
|
|
, base >= 4.10.0 && < 4.16
|
2021-05-27 02:28:43 +03:00
|
|
|
, bytestring >= 0.10.8 && < 0.12
|
2021-05-27 03:03:34 +03:00
|
|
|
, containers >= 0.5.10 && < 0.7
|
2021-05-27 02:28:43 +03:00
|
|
|
, text >= 1.2.3 && < 1.3
|
2021-05-27 02:37:24 +03:00
|
|
|
, time >= 1.9.1 && < 1.12
|
2020-11-14 20:22:08 +03:00
|
|
|
default-language: Haskell2010
|
2020-11-14 19:54:45 +03:00
|
|
|
ghc-options:
|
|
|
|
-Weverything
|
2021-05-11 01:51:22 +03:00
|
|
|
-Wno-all-missed-specialisations
|
2020-11-14 19:54:45 +03:00
|
|
|
-Wno-implicit-prelude
|
2021-05-27 03:03:34 +03:00
|
|
|
-Wno-missed-specialisations
|
2021-04-10 20:34:26 +03:00
|
|
|
-Wno-missing-exported-signatures
|
2020-11-18 19:40:35 +03:00
|
|
|
-Wno-redundant-constraints
|
2020-11-14 19:54:45 +03:00
|
|
|
-Wno-safe
|
|
|
|
-Wno-unsafe
|
|
|
|
|
2021-05-27 03:03:34 +03:00
|
|
|
if impl(ghc >= 8.4)
|
|
|
|
ghc-options:
|
|
|
|
-Wno-missing-export-lists
|
|
|
|
|
2021-05-27 02:17:25 +03:00
|
|
|
if impl(ghc >= 8.8)
|
|
|
|
ghc-options:
|
|
|
|
-Wno-missing-deriving-strategies
|
|
|
|
|
2021-04-11 17:16:45 +03:00
|
|
|
if impl(ghc >= 8.10)
|
|
|
|
ghc-options:
|
|
|
|
-Wno-missing-safe-haskell-mode
|
|
|
|
-Wno-prepositive-qualified-module
|
|
|
|
|
2021-04-18 17:27:12 +03:00
|
|
|
library
|
|
|
|
import: basics
|
|
|
|
|
|
|
|
build-depends:
|
2021-05-27 03:03:34 +03:00
|
|
|
, template-haskell >= 2.12.0 && < 2.18
|
2021-04-18 17:27:12 +03:00
|
|
|
exposed-modules:
|
|
|
|
Witch
|
2021-05-11 02:22:57 +03:00
|
|
|
Witch.From
|
2021-04-18 17:27:12 +03:00
|
|
|
Witch.Instances
|
|
|
|
Witch.Lift
|
2021-05-11 02:31:18 +03:00
|
|
|
Witch.TryFrom
|
2021-05-11 02:36:22 +03:00
|
|
|
Witch.TryFromException
|
2021-04-18 17:27:12 +03:00
|
|
|
Witch.Utility
|
|
|
|
hs-source-dirs: src/lib
|
|
|
|
|
2021-04-10 20:56:15 +03:00
|
|
|
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
|
|
|
|
|
2020-11-14 19:54:45 +03:00
|
|
|
test-suite test
|
2021-04-18 17:27:12 +03:00
|
|
|
import: basics
|
|
|
|
|
2020-11-14 19:54:45 +03:00
|
|
|
build-depends:
|
2021-05-28 05:26:16 +03:00
|
|
|
, HUnit >= 1.6.2 && < 1.7
|
2020-11-14 19:54:45 +03:00
|
|
|
, witch
|
2021-04-18 17:27:12 +03:00
|
|
|
ghc-options:
|
|
|
|
-rtsopts
|
|
|
|
-threaded
|
|
|
|
-Wno-all-missed-specialisations
|
2020-11-14 19:54:45 +03:00
|
|
|
hs-source-dirs: src/test
|
|
|
|
main-is: Main.hs
|
|
|
|
type: exitcode-stdio-1.0
|