packages feed

semigroupoids-syntax-0.0.1: semigroupoids-syntax.cabal

name:               semigroupoids-syntax
version:            0.0.1
license:            BSD3
license-file:       LICENSE
author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego>
maintainer:         Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego>
copyright:          Copyright (C) 2014 NICTA Limited
synopsis:           RebindableSyntax using the semigroupoids package
category:           Data
description:        
  <<http://i.imgur.com/Ns5hntl.jpg>>
  .
  RebindableSyntax using the semigroupoids package
homepage:           https://github.com/NICTA/semigroupoids-syntax
bug-reports:        https://github.com/NICTA/semigroupoids-syntax/issues
cabal-version:      >= 1.10
build-type:         Custom
extra-source-files: changelog

source-repository   head
  type:             git
  location:         git@github.com:NICTA/semigroupoids-syntax.git

flag                small_base
  description:      Choose the new, split-up base package.

flag containers
  description:
    You can disable the use of the `containers` package using `-f-containers`.
    .
    Disabing this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
  default: True
  manual: True

flag contravariant
  description:
    You can disable the use of the `contravariant` package using `-f-contravariant`.
    .
    Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
    .
    If disabled we will not supply instances of `Contravariant`
    .
  default: True
  manual: True

flag distributive
  description:
    You can disable the use of the `distributive` package using `-f-distributive`.
    .
    Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
    .
    If disabled we will not supply instances of `Distributive`
    .
  default: True
  manual: True

flag comonad
  description:
    You can disable the use of the `comonad` package using `-f-comonad`.
    .
    Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
    .
    If disabled we will not supply instances of `Comonad`
    .
  default: True
  manual: True

library
  default-language:
                    Haskell2010

  build-depends:
                      base < 5 && >= 3
                    , semigroups    >= 0.8.3.1 && < 1
                    , transformers  >= 0.2     && < 0.6
                    , semigroupoids == 4.2

  if flag(containers)
    build-depends: containers >= 0.3 && < 0.6

  if flag(contravariant)
    build-depends: contravariant >= 0.2.0.1 && < 2

  if flag(distributive)
    build-depends: distributive >= 0.2.2 && < 1

  if flag(comonad)
    build-depends: comonad      >= 4     && < 5

  ghc-options:
                    -Wall

  default-extensions:
                    NoImplicitPrelude
                    RebindableSyntax

  hs-source-dirs:
                    src

  exposed-modules:
                    Data.Functor.All.Syntax
                    Data.Functor.Apply.Syntax
                    Data.Functor.Bind.Syntax
                    Data.Functor.Point
                    Data.Functor.Point.Syntax
                    Data.Functor.Syntax

test-suite doctests
  type:
                    exitcode-stdio-1.0

  main-is:
                    doctests.hs

  default-language:
                    Haskell2010

  build-depends:
                      base < 5 && >= 3
                    , doctest >= 0.9.7
                    , filepath >= 1.3
                    , directory >= 1.1
                    , QuickCheck >= 2.0
                    , template-haskell >= 2.8

  ghc-options:
                    -Wall
                    -threaded

  hs-source-dirs:
                    test