packages feed

time-warp-1.1.1.2: time-warp.cabal

name:                time-warp
version:             1.1.1.2
homepage:            https://github.com/serokell/time-warp
bug-reports:         https://github.com/serokell/time-warp/issues
license:             MIT
license-file:        LICENSE
author:              Serokell
maintainer:          Serokell <hi@serokell.io>
copyright:           2016 Serokell
build-type:          Simple
cabal-version:       >=1.18
category:            Control, Network
synopsis:            Distributed systems execution emulation
description:         This package allows to write scenarios over distributed
                     systems, which can be launched as either real program or
                     fast emulation without need to wait for delays and with
                     network nastiness manually controlled.

flag build-executables
  description:       Build executables
  default:           False
  manual:            True

library
  exposed-modules:     Control.TimeWarp.Manager
                       Control.TimeWarp.Manager.Job

                       Control.TimeWarp.Rpc
                       Control.TimeWarp.Rpc.Message
                       Control.TimeWarp.Rpc.MonadDialog
                       Control.TimeWarp.Rpc.MonadTransfer
                       Control.TimeWarp.Rpc.Transfer

                       Control.TimeWarp.Timed
                       Control.TimeWarp.Timed.MonadTimed
                       Control.TimeWarp.Timed.Misc
                       Control.TimeWarp.Timed.TimedIO
                       Control.TimeWarp.Timed.TimedT

  build-depends:       ansi-terminal
                     , array
                     , attoparsec >= 0.13
                     , base >= 4.8 && < 5
                     , binary >= 0.8.3
                     , binary-conduit >= 1.2.4.1
                     , bytestring >= 0.10.6.0
                     , conduit >= 1.2.6
                     , conduit-extra >= 1.1
                     , containers
                     , data-default
                     , data-msgpack >= 0.0.8
                     , deepseq >= 1.4.1
                     , exceptions
                     , extra
                     , formatting
                     , hashable
                     , lens
                     , lifted-base >= 0.2.3
                     , log-warper  >= 0.2.0
                     , mtl
                     , MonadRandom
                     , monad-loops
                     , monad-control
                     , mmorph >= 1.0
                     , network >= 2.6
                     , pqueue
                     , QuickCheck >= 2.8.1
                     , quickcheck-instances
                     , random >= 1.1
                     , safe
                     , serokell-util >= 0.1.1.1
                     , semigroups
                     , slave-thread >= 1.0
                     , stm >= 2.4.4
                     , stm-chans >= 3.0.0
                     , stm-conduit >= 3.0
                     , streaming-commons >= 0.1.15
                     , template-haskell
                     , text >= 1.2.2.0
                     , text-format
                     , time
                     , time-units >= 1.0.0
                     , transformers >= 0.4.2.0
                     , transformers-base
                     , unordered-containers >= 0.2.7

  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall -fno-warn-orphans
  default-extensions:  RecordWildCards
                       OverloadedStrings
                       DeriveDataTypeable
                       DeriveGeneric
                       GeneralizedNewtypeDeriving

test-suite time-warp-test
  main-is:             Test.hs
  other-modules:       Test.Control.TimeWarp.Timed.ExceptionSpec
                     , Test.Control.TimeWarp.Timed.MonadTimedSpec

                     , Test.Control.TimeWarp.Common

                     , Spec
  type:                exitcode-stdio-1.0
  build-depends:       async >= 2.0.1
                     , base >= 4.8 && < 5
                     , data-default
                     , exceptions >= 0.8.2.1
                     , hspec >= 2.1.10
                     , lens >= 4.13
                     , log-warper >= 0.2.0
                     , data-msgpack >= 0.0.8
                     , mtl
                     , QuickCheck >= 2.8.1
                     , serokell-util >= 0.1.1.1
                     , stm >= 2.4.4.1
                     , text >= 1.2.2.0
                     , text-format
                     , time-units >= 1.0.0
                     , time-warp
                     , transformers >= 0.4.2.0
                     , random >= 1.1
  hs-source-dirs:      test
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall -fno-warn-orphans
  default-extensions:  OverloadedStrings
                     , RecordWildCards
                     , DeriveDataTypeable
                     , GeneralizedNewtypeDeriving

executable ping-pong
  main-is:             Main.hs
  build-depends:       base          >= 4.8 && < 5
                     , binary
                     , data-default
                     , exceptions    >= 0.8.2.1
                     , formatting
                     , log-warper    >= 0.2.0
                     , mtl
                     , serokell-util >= 0.1.1.1
                     , stm           >= 2.4.4.1
                     , text          >= 1.2.2.0
                     , time-warp
                     , time
  hs-source-dirs:      examples/ping-pong
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall -fno-warn-orphans
  default-extensions:  DeriveGeneric
                       DeriveDataTypeable
                       GeneralizedNewtypeDeriving
                       OverloadedStrings
                       RecordWildCards

executable socket-state
  main-is:             Main.hs
  build-depends:       base          >= 4.8 && < 5
                     , binary
                     , data-default
                     , exceptions    >= 0.8.2.1
                     , formatting
                     , lens          >= 4.14
                     , log-warper    >= 0.2.0
                     , monad-loops   >= 0.4.3
                     , mtl
                     , random        >= 1.1
                     , serokell-util >= 0.1.1.1
                     , stm           >= 2.4.4.1
                     , text          >= 1.2.2.0
                     , time-warp
                     , time
  hs-source-dirs:      examples/socket-state
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall -fno-warn-orphans
  default-extensions:  DeriveGeneric
                       DeriveDataTypeable
                       GeneralizedNewtypeDeriving
                       OverloadedStrings
                       RecordWildCards


executable net-playground
  main-is:             Main.hs
  build-depends:       async >= 2.0.1
                     , base >= 4.8 && < 5
                     , binary >= 0.8.3
                     , binary-conduit >= 1.2.4.1
                     , conduit >= 1.2.6
                     , data-default
                     , exceptions >= 0.8.2.1
                     , formatting
                     , hspec >= 2.1.10
                     , lens >= 4.13
                     , log-warper >= 0.2.0
                     , MonadRandom
                     , data-msgpack >= 0.0.8
                     , mtl
                     , QuickCheck >= 2.8.1
                     , serokell-util >= 0.1.1.1
                     , stm >= 2.4.4.1
                     , text >= 1.2.2.0
                     , text-format
                     , time-units >= 1.0.0
                     , time-warp
                     , transformers >= 0.4.2.0
                     , random >= 1.1
  hs-source-dirs:      examples/playground
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall -fno-warn-orphans
  default-extensions:  OverloadedStrings
                     , RecordWildCards
                     , DeriveDataTypeable
                     , GeneralizedNewtypeDeriving
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False

executable bench-sender
  main-is:             Main.hs
  other-modules:       Bench.Network.Commons
                       SenderOptions
  build-depends:       async >= 2.1
                     , attoparsec >= 0.13.1
                     , base == 4.*
                     , binary >= 0.8.3
                     , bytestring >= 0.10.6.0
                     , data-default >= 0.7
                     , data-msgpack >= 0.0.8
                     , directory >= 1.2.6
                     , exceptions >= 0.8.2.1
                     , extra >= 1.4
                     , formatting
                     , hslogger
                     , log-warper >= 0.2.0
                     , monad-control >= 1.0.1
                     , mtl
                     , optparse-simple >= 0.0.3
                     , serokell-util
                     , random >= 1.1
                     , text-format >= 0.3.1
                     , time >= 1.6
                     , time-units >= 1.0.0
                     , time-warp
                     , transformers >= 0.5.2
                     , unordered-containers >= 0.2.7
  hs-source-dirs:      bench/Network/Sender
                     , bench/Network/Common
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False
  default-language:    Haskell2010
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-extensions:  OverloadedStrings
                     , RecordWildCards
                     , DeriveDataTypeable
                     , GeneralizedNewtypeDeriving

executable bench-receiver
  main-is:             Main.hs
  other-modules:       Bench.Network.Commons
                       ReceiverOptions
  build-depends:       attoparsec >= 0.13.1
                     , base == 4.*
                     , binary >= 0.8.3
                     , bytestring >= 0.10.6.0
                     , data-default >= 0.7
                     , data-msgpack >= 0.0.8
                     , directory >= 1.2.6
                     , exceptions >= 0.8.2.1
                     , formatting
                     , hslogger
                     , log-warper >= 0.2.0
                     , mtl
                     , optparse-simple >= 0.0.3
                     , serokell-util
                     , text-format >= 0.3.1
                     , time >= 1.6
                     , time-units >= 1.0.0
                     , time-warp
                     , unordered-containers >= 0.2.7
  hs-source-dirs:      bench/Network/Receiver
                     , bench/Network/Common
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False
  default-language:    Haskell2010
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-extensions:  OverloadedStrings
                     , RecordWildCards
                     , DeriveDataTypeable
                     , GeneralizedNewtypeDeriving

executable bench-log-reader
  main-is:             Main.hs
  other-modules:       Bench.Network.Commons
                       LogReaderOptions
  build-depends:       attoparsec >= 0.13.1
                     , base == 4.*
                     , binary >= 0.8.3
                     , bytestring >= 0.10.6.0
                     , conduit >= 1.2.7
                     , conduit-extra >= 1.1.13
                     , containers >= 0.5.7
                     , data-default >= 0.7
                     , data-msgpack >= 0.0.8
                     , directory >= 1.2.6
                     , exceptions >= 0.8.2.1
                     , formatting
                     , hslogger
                     , log-warper >= 0.2.0
                     , lens >= 4.14
                     , mtl
                     , optparse-simple >= 0.0.3
                     , resourcet >= 1.1.7
                     , text >= 1.2.2
                     , text-format >= 0.3.1
                     , time >= 1.6
                     , time-units >= 1.0.0
                     , time-warp
                     , unordered-containers >= 0.2.7
  hs-source-dirs:      bench/Network/LogReader
                     , bench/Network/Common
  if flag(build-executables)
    buildable:         True
  else
    buildable:         False
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall
  default-extensions:  OverloadedStrings
                     , RecordWildCards
                     , DeriveDataTypeable
                     , GeneralizedNewtypeDeriving