packages feed

unliftio-0.2.11: unliftio.cabal

cabal-version: 1.12

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

name:           unliftio
version:        0.2.11
synopsis:       The MonadUnliftIO typeclass for unlifting monads to IO (batteries included)
description:    Please see the documentation and README at <https://www.stackage.org/package/unliftio>
category:       Control
homepage:       https://github.com/fpco/unliftio/tree/master/unliftio#readme
author:         Michael Snoyman, Francesco Mazzoli
maintainer:     michael@snoyman.com
copyright:      2017 FP Complete
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    ChangeLog.md

library
  hs-source-dirs:
      src
  ghc-options: -fwarn-incomplete-uni-patterns
  build-depends:
      async >2.1.1
    , base >=4.7 && <5
    , deepseq
    , directory
    , filepath
    , process >=1.2.0.0
    , stm >=2.4.3
    , time
    , transformers
    , unliftio-core >=0.1.1.0
  if os(windows)
    cpp-options: -DWINDOWS
  else
    build-depends:
        unix
  if impl(ghc <= 7.10)
    build-depends:
        nats
  if os(darwin)
    c-sources:
        cbits/time-osx.c
  else
    if os(windows)
      c-sources:
          cbits/time-windows.c
    else
      c-sources:
          cbits/time-posix.c
  exposed-modules:
      UnliftIO
      UnliftIO.Async
      UnliftIO.Chan
      UnliftIO.Concurrent
      UnliftIO.Directory
      UnliftIO.Environment
      UnliftIO.Exception
      UnliftIO.Foreign
      UnliftIO.Internals.Async
      UnliftIO.IO
      UnliftIO.IORef
      UnliftIO.Memoize
      UnliftIO.MVar
      UnliftIO.Process
      UnliftIO.STM
      UnliftIO.Temporary
      UnliftIO.Timeout
  other-modules:
      Paths_unliftio
  default-language: Haskell2010

test-suite unliftio-spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  build-depends:
      QuickCheck
    , async >2.1.1
    , base >=4.7 && <5
    , containers
    , deepseq
    , directory
    , filepath
    , hspec
    , process >=1.2.0.0
    , stm >=2.4.3
    , time
    , transformers
    , unliftio
    , unliftio-core >=0.1.1.0
  if os(windows)
    cpp-options: -DWINDOWS
  else
    build-depends:
        unix
  other-modules:
      UnliftIO.AsyncSpec
      UnliftIO.ExceptionSpec
      UnliftIO.IOSpec
      UnliftIO.MemoizeSpec
      UnliftIO.PooledAsyncSpec
      Paths_unliftio
  default-language: Haskell2010

benchmark conc-bench
  type: exitcode-stdio-1.0
  main-is: ConcBench.hs
  other-modules:
      Paths_unliftio
  hs-source-dirs:
      bench
  ghc-options: -O2 -threaded -rtsopts
  build-depends:
      async >2.1.1
    , base >=4.7 && <5
    , deepseq
    , directory
    , filepath
    , gauge
    , process >=1.2.0.0
    , stm >=2.4.3
    , time
    , transformers
    , unliftio
    , unliftio-core >=0.1.1.0
  if os(windows)
    cpp-options: -DWINDOWS
  else
    build-depends:
        unix
  default-language: Haskell2010