File: newtype.cabal

package info (click to toggle)
haskell-newtype 0.2.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 84 kB
  • sloc: haskell: 132; makefile: 2
file content (58 lines) | stat: -rw-r--r-- 1,559 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cabal-version:       1.12
build-type:          Simple
name:                newtype
version:             0.2.2.0
x-revision:          3

license:             BSD3
license-file:        LICENSE
author:              Herbert Valerio Riedel, Darius Jahandarie, Conor McBride
maintainer:          Andreas Abel
category:            Control
bug-reports:         https://github.com/hvr/newtype/issues

synopsis:            A typeclass and set of functions for working with newtypes.
description:         Per Conor McBride, the 'Newtype' typeclass represents the packing and unpacking of a @newtype@, and allows you to operate under that @newtype@ with functions such as 'ala'. See "Control.Newtype" for documentation and examples.

tested-with:
   GHC == 9.4.1
   GHC == 9.2.2
   GHC == 9.0.2
   GHC == 8.10.7
   GHC == 8.8.4
   GHC == 8.6.5
   GHC == 8.4.4
   GHC == 8.2.2
   GHC == 8.0.2
   GHC == 7.10.3
   GHC == 7.8.4
   GHC == 7.6.3
   GHC == 7.4.2
   GHC == 7.0.4

extra-source-files:    CHANGES.md

source-repository head
  type:     git
  location: https://github.com/hvr/newtype.git

library
  exposed-modules:     Control.Newtype

  build-depends:       base >= 4.3 && < 5
  if !impl(ghc >= 8.0)
    build-depends:     transformers >= 0.2.2.0 && < 0.6

  default-language:    Haskell2010
  other-extensions:
    CPP
    FlexibleInstances
    FunctionalDependencies
    MultiParamTypeClasses
    TypeFamilies

  if impl(ghc >= 7.2)
    default-extensions: Trustworthy
    if impl(ghc >= 7.10) { ghc-options: -fno-warn-trustworthy-safe }

  ghc-options: -Wall