packages feed

rhine-terminal-1.2: rhine-terminal.cabal

-- Initial rhine-gloss.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                rhine-terminal
version:             1.2
synopsis:            Terminal backend for Rhine
description:
  This package provides an example of a `terminal` based program using rhine.
license:             BSD3
license-file:        LICENSE
author:              Manuel Bärenz, Jun Matsushita
maintainer:          programming@manuelbaerenz.de, jun@iilab.org
-- copyright:
category:            FRP
build-type:          Simple
extra-source-files:  ChangeLog.md
extra-doc-files:     README.md
cabal-version:       2.0

source-repository head
  type:     git
  location: https://github.com/turion/rhine.git

source-repository this
  type:     git
  location: https://github.com/turion/rhine.git
  tag:      v1.1

library
  exposed-modules:
    FRP.Rhine.Terminal
  build-depends:       base         >= 4.11 && < 4.18
                     , exceptions   >= 0.10.4
                     , transformers >= 0.5
                     , rhine        == 1.2
                     , dunai        ^>= 0.11
                     , terminal     >= 0.2.0.0
                     , time         >= 1.9.3
                     , monad-schedule >= 0.1.2
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -W
  default-extensions:
    TypeOperators
  if flag(dev)
    ghc-options: -Werror

executable rhine-terminal-simple
  main-is:             TerminalSimple.hs
  ghc-options:         -threaded
  build-depends:       base         >= 4.14 && < 4.18
                     , rhine        == 1.2
                     , rhine-terminal
                     , terminal     >= 0.2.0.0
                     , text         >= 1.2
                     , time         >= 1.9.3

  default-language:    Haskell2010
  ghc-options:         -W -threaded -rtsopts -with-rtsopts=-N
  default-extensions:
    TypeOperators
  if flag(dev)
    ghc-options: -Werror

test-suite rhine-terminal-tests
  type:                exitcode-stdio-1.0
  main-is:             tests/Main.hs
  ghc-options:         -threaded
  build-depends:       base         >= 4.14 && < 4.18
                     , rhine        == 1.2
                     , rhine-terminal
                     , exceptions   >= 0.10.4
                     , transformers >= 0.5
                     , terminal     >= 0.2.0.0
                     , text         >= 1.2
                     , time         >= 1.9.3
                     , stm          >= 2.5.0
                     , hspec

  default-language:    Haskell2010
  ghc-options:         -W -threaded -rtsopts -with-rtsopts=-N
  default-extensions:
    TypeOperators
  if flag(dev)
    ghc-options: -Werror

flag dev
  description: Enable warnings as errors. Active on ci.
  default: False
  manual: True