packages feed

universe-instances-extended-1.1.2: universe-instances-extended.cabal

name:               universe-instances-extended
version:            1.1.2
synopsis:           Universe instances for types from selected extra packages
description:
  A class for finite and recursively enumerable types and some helper functions for enumerating them
  defined in @universe-base@ package:
  .
  @
  class Universe a where universe :: [a]
  class Universe a => Finite a where universeF :: [a]; universeF = universe
  @

homepage:           https://github.com/dmwit/universe
license:            BSD3
license-file:       LICENSE
author:             Daniel Wagner
maintainer:         me@dmwit.com
copyright:          Daniel Wagner 2014
category:           Data
build-type:         Simple
cabal-version:      >=1.10
extra-source-files: changelog
tested-with:
  GHC ==7.0.4
   || ==7.4.2
   || ==7.6.3
   || ==7.8.4
   || ==7.10.3
   || ==8.0.2
   || ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.3

source-repository head
  type:     git
  location: https://github.com/dmwit/universe

source-repository this
  type:     git
  location: https://github.com/dmwit/universe
  tag:      universe-1.2.1

library
  default-language: Haskell2010
  hs-source-dirs:   src
  exposed-modules:  Data.Universe.Instances.Extended
  build-depends:
      base           >=4.3   && <4.15
    , containers
    , universe-base  >=1.1.2 && <1.1.3

  if impl(ghc >=7.4)
    -- adjunctions-4.4 and comonad-5.0.8 have explicit annotations
    build-depends:
        adjunctions  >=4.4   && <4.5
      , comonad      >=5.0.8 && <5.1

  else
    build-depends:
        adjunctions  >=4.3 && <4.4
      , comonad      >=4.2 && <5.1

  if !impl(ghc >=8.6)
    build-depends: contravariant >=1.5.3 && <1.6

  if impl(ghc >=9.0)
    -- these flags may abort compilation with GHC-8.10
    -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295
    ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode