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
|
2022-09-10 00:17:24 +03:00
|
|
|
version: 1.0.0.4
|
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
|
2022-01-11 15:30:31 +03:00
|
|
|
license-file: LICENSE.markdown
|
|
|
|
license: MIT
|
2020-11-14 19:54:45 +03:00
|
|
|
maintainer: Taylor Fausak
|
|
|
|
|
|
|
|
source-repository head
|
|
|
|
location: https://github.com/tfausak/witch
|
|
|
|
type: git
|
|
|
|
|
2021-12-04 23:26:06 +03:00
|
|
|
flag pedantic
|
|
|
|
default: False
|
|
|
|
description: Enables @-Werror@, which turns warnings into errors.
|
|
|
|
manual: True
|
|
|
|
|
2022-01-11 15:30:31 +03:00
|
|
|
common library
|
2021-04-18 17:50:39 +03:00
|
|
|
build-depends:
|
2022-09-09 22:44:12 +03:00
|
|
|
, base >= 4.10 && < 4.18
|
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
|
2022-10-01 16:52:31 +03:00
|
|
|
, tagged >= 0.8.6 && < 0.9
|
2022-03-21 15:18:38 +03:00
|
|
|
, text >= 1.2.3 && < 1.3 || >= 2.0 && < 2.1
|
2021-07-10 21:24:42 +03:00
|
|
|
, time >= 1.9.1 && < 1.13
|
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-12-04 23:26:06 +03:00
|
|
|
|
2021-11-24 18:43:09 +03:00
|
|
|
if impl(ghc >= 9.2)
|
|
|
|
ghc-options:
|
|
|
|
-Wno-missing-kind-signatures
|
2021-04-11 17:16:45 +03:00
|
|
|
|
2021-12-04 23:26:06 +03:00
|
|
|
if flag(pedantic)
|
|
|
|
ghc-options:
|
|
|
|
-Werror
|
|
|
|
|
2022-01-11 15:30:31 +03:00
|
|
|
common executable
|
|
|
|
import: library
|
|
|
|
|
|
|
|
build-depends: witch
|
|
|
|
ghc-options:
|
|
|
|
-rtsopts
|
|
|
|
-threaded
|
2022-01-11 15:36:00 +03:00
|
|
|
|
2021-04-18 17:27:12 +03:00
|
|
|
library
|
2022-01-11 15:30:31 +03:00
|
|
|
import: library
|
2021-04-18 17:27:12 +03:00
|
|
|
|
2022-09-08 23:03:40 +03:00
|
|
|
build-depends:
|
2022-09-09 22:44:12 +03:00
|
|
|
, template-haskell >= 2.12 && < 2.20
|
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
|
2022-01-11 15:30:31 +03:00
|
|
|
hs-source-dirs: source/library
|
2021-04-18 17:27:12 +03:00
|
|
|
|
2021-04-10 20:56:15 +03:00
|
|
|
if impl(ghc >= 9.0)
|
2022-01-11 15:30:31 +03:00
|
|
|
hs-source-dirs: source/ghc-9.0
|
|
|
|
elif impl(ghc >= 8.10)
|
|
|
|
hs-source-dirs: source/ghc-8.10
|
2021-04-10 20:56:15 +03:00
|
|
|
else
|
2022-01-11 15:30:31 +03:00
|
|
|
hs-source-dirs: source/ghc-8.8
|
2021-04-10 20:56:15 +03:00
|
|
|
|
2022-09-08 17:05:47 +03:00
|
|
|
test-suite witch-test-suite
|
2022-01-11 15:30:31 +03:00
|
|
|
import: executable
|
2021-04-18 17:27:12 +03:00
|
|
|
|
2020-11-14 19:54:45 +03:00
|
|
|
build-depends:
|
2022-01-11 15:42:20 +03:00
|
|
|
, HUnit >= 1.6.1 && < 1.7
|
2022-09-09 22:44:12 +03:00
|
|
|
, transformers >= 0.5.2 && < 0.7
|
2022-01-11 15:30:31 +03:00
|
|
|
hs-source-dirs: source/test-suite
|
2020-11-14 19:54:45 +03:00
|
|
|
main-is: Main.hs
|
|
|
|
type: exitcode-stdio-1.0
|