packages feed

free-5.2: examples/free-examples.cabal

name:          free-examples
category:      Control, Monads
version:       0.1
license:       BSD3
cabal-version: 1.18
license-file:  LICENSE
author:        Edward A. Kmett
maintainer:    Edward A. Kmett <ekmett@gmail.com>
stability:     provisional
homepage:      http://github.com/ekmett/free/
bug-reports:   http://github.com/ekmett/free/issues
copyright:     Copyright (C) 2008-2015 Edward A. Kmett
tested-with:   GHC == 8.0.2
             , GHC == 8.2.2
             , GHC == 8.4.4
             , GHC == 8.6.5
             , GHC == 8.8.4
             , GHC == 8.10.7
             , GHC == 9.0.2
             , GHC == 9.2.6
             , GHC == 9.4.4
             , GHC == 9.6.1
synopsis:      Monads for free
description:   Examples projects using @free@
build-type:    Simple

source-repository head
  type: git
  location: git://github.com/ekmett/free.git

flag mandelbrot-iter
  default: True

library
  hs-source-dirs: .
  default-language: Haskell2010
  exposed-modules: Cabbage
  ghc-options: -Wall
  build-depends:
    base         >= 4.9 && < 5,
    free,
    mtl          >= 2.0.1 && < 2.4,
    transformers >= 0.2   && < 0.7

executable free-mandelbrot-iter
  if !flag(mandelbrot-iter)
    buildable: False
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: MandelbrotIter.lhs
  ghc-options: -Wall
  build-depends:
    base         >= 4.9 && < 5,
    free,
    HGL          >= 3.2.3.2,
    mtl          >= 2.0.1 && < 2.4,
    transformers >= 0.2   && < 0.7

executable free-newton-coiter
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: NewtonCoiter.lhs
  ghc-options: -Wall
  build-depends:
    base        >= 4.9 && < 5,
    comonad     >= 4 && < 6,
    free

executable free-perf-th
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: PerfTH.hs
  ghc-options: -Wall
  build-depends:
    base         >= 4.9 && < 5,
    free,
    rdtsc,
    transformers >= 0.2   && < 0.7

executable free-retry-th
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: RetryTH.hs
  ghc-options: -Wall -fno-warn-orphans
  build-depends:
    base                >= 4.9 && < 5,
    free,
    transformers        >= 0.2   && < 0.7,
    transformers-compat >= 0.6.4 && < 0.8

executable free-teletype
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: Teletype.lhs
  ghc-options: -Wall
  build-depends:
    base        >= 4.9 && < 5,
    free,
    monad-loops

executable free-validation-form
  hs-source-dirs: .
  default-language: Haskell2010
  main-is: ValidationForm.hs
  ghc-options: -Wall
  build-depends:
    base        >= 4.9 && < 5,
    free,
    transformers >= 0.2 && < 0.7