iso-deriving/iso-deriving.cabal

58 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-04-16 16:08:51 +03:00
name: iso-deriving
2020-04-24 18:12:03 +03:00
version: 0.0.8
2020-04-16 16:08:51 +03:00
author: Hans Hoeglund
maintainer: Hans Hoeglund <hans.hoeglund@tweag.io>
license: MIT
license-file: LICENSE
2020-04-16 21:17:55 +03:00
synopsis: Deriving via arbitrary isomorphisms.
2020-04-16 18:10:20 +03:00
category: Generics
2020-04-16 16:08:51 +03:00
tested-with: GHC
build-type: Simple
cabal-version: >= 1.10
description:
2020-04-16 21:28:39 +03:00
The GHC extension DerivingVia allow derivation through a specific morphism:
coerce. This library helps generalizing DerivingVia to arbitrary morphisms.
This is particularly useful for prototypes and specifications of instances.
2020-04-16 16:08:51 +03:00
extra-source-files: README.md
source-repository head
type: git
location: git://github.com/hanshoglund/iso-deriving.git
2020-04-16 18:07:56 +03:00
flag strict
manual: True
default: False
2020-04-16 16:08:51 +03:00
library
2020-04-16 21:17:55 +03:00
build-depends: base >= 4.12 && < 5,
2020-04-23 15:14:01 +03:00
mtl,
2020-04-16 16:08:51 +03:00
profunctors
exposed-modules: Iso.Deriving
hs-source-dirs: .
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wno-unused-top-binds
-Wno-name-shadowing
2020-04-16 18:07:56 +03:00
if flag(strict)
ghc-options:
-Werror
2020-04-16 16:08:51 +03:00
test-suite "iso-deriving-tests"
build-depends: base,
mtl,
iso-deriving
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
default-language: Haskell2010