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
This commit is contained in:
Peter Simons 2018-09-25 01:01:27 +00:00 committed by Git OBS Bridge
parent 526d4a0126
commit bc6fcf4525
2 changed files with 100 additions and 0 deletions

View File

@ -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

98
unliftio.cabal Normal file
View File

@ -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 <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:
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