packages feed

netwire-5.0.0: netwire.cabal

name:          netwire
version:       5.0.0
category:      FRP
synopsis:      Functional reactive programming library
maintainer:    Ertugrul Söylemez <es@ertes.de>
author:        Ertugrul Söylemez <es@ertes.de>
copyright:     (c) 2013 Ertugrul Söylemez
license:       BSD3
license-file:  LICENSE
build-type:    Simple
cabal-version: >= 1.10
extra-source-files: README.md default.nix
description:
    This library provides interfaces for and implements wire arrows
    useful both for functional reactive programming (FRP) and locally
    stateful programming (LSP).

flag TestProgram
    default: False
    description: Build the test program
    manual: True

Source-repository head
    type:     darcs
    location: http://hub.darcs.net/ertes/netwire

library
    build-depends:
        base         >= 4.5 && < 5,
        containers   >= 0.5 && < 1,
        deepseq      >= 1.3 && < 2,
        parallel     >= 3.2 && < 4,
        random       >= 1.0 && < 2,
        semigroups   >= 0.9 && < 1,
        transformers >= 0.3 && < 1,
        time         >= 1.4 && < 2
    default-language: Haskell2010
    default-extensions:
        DeriveDataTypeable
        DeriveFoldable
        DeriveFunctor
        DeriveTraversable
        FlexibleInstances
        FunctionalDependencies
        GADTs
        MultiParamTypeClasses
        RankNTypes
        TupleSections
    ghc-options: -W
    exposed-modules:
        Control.Wire
        Control.Wire.Core
        Control.Wire.Event
        Control.Wire.Interval
        Control.Wire.Run
        Control.Wire.Session
        Control.Wire.Switch
        Control.Wire.Time
        Control.Wire.Unsafe.Event
        FRP.Netwire
        FRP.Netwire.Analyze
        FRP.Netwire.Move
        FRP.Netwire.Noise
        FRP.Netwire.Utils.Timeline

executable netwire-test
    build-depends:
        base >= 4.5 && < 5,
        containers,
        netwire
    default-language: Haskell2010
    default-extensions:
        Arrows
        OverloadedStrings
        RecursiveDo
    ghc-options: -threaded -rtsopts
    hs-source-dirs: test
    main-is: Test.hs
    if flag(testprogram)
        buildable: True
    else
        buildable: False

-- test-suite tests
--     type: exitcode-stdio-1.0
--     build-depends:
--         base >= 4.5 && < 5,
--         netwire,
--         QuickCheck,
--         test-framework,
--         test-framework-quickcheck2,
--         test-framework-th,
--         vty
--     default-language: Haskell2010
--     default-extensions:
--         TemplateHaskell
--     ghc-options: -W -threaded -rtsopts -with-rtsopts=-N
--     hs-source-dirs: test
--     main-is: Props.hs