File: monad-loops.cabal

package info (click to toggle)
haskell-monad-loops 0.4.3-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 80 kB
  • sloc: haskell: 344; makefile: 3
file content (50 lines) | stat: -rw-r--r-- 1,751 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name:                   monad-loops
version:                0.4.3
stability:              provisional
license:                PublicDomain

cabal-version:          >= 1.8
build-type:             Simple

author:                 James Cook <mokus@deepbondi.net>
maintainer:             James Cook <mokus@deepbondi.net>
homepage:               https://github.com/mokus0/monad-loops

category:               Control
synopsis:               Monadic loops
description:            Some useful control operators for looping.
                        .
                        New in 0.4: STM loop operators have been split into a
                        new package instead of being conditionally-built.
                        .
                        New in 0.3.2.0: various functions for traversing lists and 
                        computing minima/maxima using arbitrary procedures to compare
                        or score the elements.

source-repository head
  type: git
  location: git://github.com/mokus0/monad-loops.git

Flag base4
  Description:          Build using base >= 4
  Default:              True

Library
  hs-source-dirs:       src
  if impl(ghc >= 7)
    ghc-options:        -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing
  exposed-modules:      Control.Monad.Loops
  if flag(base4)
    cpp-options:        -Dbase4
    build-depends:      base >= 4 && < 5
  else
    build-depends:      base >= 2 && < 4

Test-Suite test-monad-loops
    type:       exitcode-stdio-1.0
    main-is:    Tests/test-monad-loops.hs
    if flag(base4)
      cpp-options:        -Dbase4
      build-depends:      base >= 4 && < 5, tasty, tasty-hunit, monad-loops
    else
      build-depends:      base >= 2 && < 4, tasty, tasty-hunit, monad-loops