From bc6fcf4525c9c7d99ab9682191ad442ddb95aff2b84ed93ca1e7c111c2f1cc4c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 25 Sep 2018 01:01:27 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-unliftio revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-unliftio?expand=0&rev=21 --- ghc-unliftio.spec | 2 + unliftio.cabal | 98 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 unliftio.cabal diff --git a/ghc-unliftio.spec b/ghc-unliftio.spec index dd127e6..0d85723 100644 --- a/ghc-unliftio.spec +++ b/ghc-unliftio.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-async-devel BuildRequires: ghc-deepseq-devel @@ -59,6 +60,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/unliftio.cabal b/unliftio.cabal new file mode 100644 index 0000000..1a8c18f --- /dev/null +++ b/unliftio.cabal @@ -0,0 +1,98 @@ +cabal-version: >= 1.10 + +-- This file has been generated from package.yaml by hpack version 0.29.6. +-- +-- see: https://github.com/sol/hpack +-- +-- hash: 80f98ec8618eddf5cd9e60732404c2af04ec9c97f9edefb9aa7b236b776e10ea + +name: unliftio +version: 0.2.7.1 +x-revision: 1 +synopsis: The MonadUnliftIO typeclass for unlifting monads to IO (batteries included) +description: Please see the documentation and README at +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: + ChangeLog.md + README.md + +library + hs-source-dirs: + src + build-depends: + async >2.1.1 + , base >=4.7 && <5 + , deepseq >= 1.1.0.0 + , directory + , filepath + , process >=1.2.0.0 + , stm >=2.4.3 && <2.5 + , time + , transformers + , unliftio-core >=0.1.1.0 + if !os(Windows) + build-depends: + unix + 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.IO + UnliftIO.IORef + 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: + async >2.1.1 + , base >=4.7 && <5 + , deepseq >= 1.1.0.0 + , directory + , filepath + , hspec + , process >=1.2.0.0 + , stm >=2.4.3 && <2.5 + , time + , transformers + , unliftio + , unliftio-core >=0.1.1.0 + if !os(Windows) + build-depends: + unix + other-modules: + UnliftIO.ExceptionSpec + UnliftIO.IOSpec + Paths_unliftio + default-language: Haskell2010