packages feed

optional-0.0.1: optional.cabal

name:               optional
version:            0.0.1
license:            BSD3
license-File:       etc/LICENCE
author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
maintainer:         Tony Morris
copyright:          Copyright (C) 2010-2013 Tony Morris
synopsis:           Using type-classes for optional function arguments
category:           Development
description:        Using type-classes for optional function arguments. Although this implements that which is available in other programming languages, and is a lot safer than in those environments, it is still of dubious morality. Use with care, question and caution.
homepage:           https://github.com/tonymorris/optional
bug-reports:        https://github.com/tonymorris/optional/issues
cabal-version:      >= 1.10
build-type:         Custom

source-repository   head
  type:             git
  location:         git@github.com:tonymorris/optional.git

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

library
  default-language:
                    Haskell2010

  build-depends:
                    base < 5 && >= 3

  ghc-options:
                    -Wall

  default-extensions:
                      NoImplicitPrelude
                    , MultiParamTypeClasses
                    , FlexibleContexts
                    , FlexibleInstances

  hs-source-dirs:
                    src

  exposed-modules:
                    System.Args.Optional

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

  ghc-options:
                    -Wall
                    -threaded

  hs-source-dirs:
                    test