packages feed

newtype-0.2.2.0: newtype.cabal

cabal-version:       1.12
build-type:          Simple
name:                newtype
version:             0.2.2.0

license:             BSD3
license-file:        LICENSE
author:              Herbert Valerio Riedel, Darius Jahandarie, Conor McBride
maintainer:          hvr@gnu.org
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.

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.5 && < 4.14
  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