packages feed

mock-time-0.1.1: mock-time.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

name:           mock-time
version:        0.1.1
synopsis:       Mock time in tests
description:    Allows to mock out Data.Time.getCurrentTime and Control.Concrurent.threadDelay
category:       Test
homepage:       https://github.com/luntain/error-or-bundle/blob/master/mock-time#readme
author:         Kamil Dworakowski
maintainer:     kamil@dworakowski.name
copyright:      2020 Kamil Dworakowski
license:        BSD3
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 8.0.2 || ==8.2.2 || ==8.6.5 || ==8.8.3 || ==8.10.2 || ==9.0.1 || ==9.2.1 || ==9.4.8 || ==9.6.6
extra-source-files:
    README.md
    changelog.md

library
  exposed-modules:
      Control.Monad.Time
      Control.Monad.Time.DefaultInstance
      Control.Monad.Trans.SimulatedTime
      Test.SimulatedTime
  other-modules:
      Paths_mock_time
  hs-source-dirs:
      src
  ghc-options: -Wall -fno-warn-name-shadowing -fno-warn-orphans
  build-depends:
      base >=4.7 && <5
    , error-or
    , exceptions
    , mtl
    , primitive
    , resourcet
    , stm
    , time
    , transformers
    , unliftio-core
  default-language: Haskell2010

test-suite my-test-suite
  type: exitcode-stdio-1.0
  main-is: Tests.hs
  other-modules:
      Paths_mock_time
  hs-source-dirs:
      tests
  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wno-type-defaults
  build-depends:
      QuickCheck
    , base >=4.7 && <5
    , error-or
    , error-or-utils
    , exceptions
    , inbox
    , mock-time
    , mtl
    , primitive
    , resourcet
    , stm
    , tasty
    , tasty-hunit
    , tasty-quickcheck
    , time
    , transformers
    , unliftio-core
  default-language: Haskell2010