iso-deriving/iso-deriving.cabal
2020-04-24 16:12:03 +01:00

58 lines
1.5 KiB
Plaintext
Executable File

name: iso-deriving
version: 0.0.8
author: Hans Hoeglund
maintainer: Hans Hoeglund <hans.hoeglund@tweag.io>
license: MIT
license-file: LICENSE
synopsis: Deriving via arbitrary isomorphisms.
category: Generics
tested-with: GHC
build-type: Simple
cabal-version: >= 1.10
description:
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.
extra-source-files: README.md
source-repository head
type: git
location: git://github.com/hanshoglund/iso-deriving.git
flag strict
manual: True
default: False
library
build-depends: base >= 4.12 && < 5,
mtl,
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
if flag(strict)
ghc-options:
-Werror
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