From d2dcc17cc325461f79a13bf9d1d7bbaf0b2dce989ad6e26e429fdbb27e7d3cae Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 12 Jan 2018 20:56:24 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:lts:10 package:ghc-lifted-base revision:4, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lifted-base?expand=0&rev=21 --- ghc-lifted-base.spec | 2 + lifted-base.cabal | 96 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 lifted-base.cabal diff --git a/ghc-lifted-base.spec b/ghc-lifted-base.spec index a655b34..c272b9b 100644 --- a/ghc-lifted-base.spec +++ b/ghc-lifted-base.spec @@ -26,6 +26,7 @@ License: BSD-3-Clause 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-monad-control-devel BuildRequires: ghc-rpm-macros @@ -61,6 +62,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/lifted-base.cabal b/lifted-base.cabal new file mode 100644 index 0000000..a293334 --- /dev/null +++ b/lifted-base.cabal @@ -0,0 +1,96 @@ +Name: lifted-base +Version: 0.2.3.11 +x-revision: 1 +Synopsis: lifted IO operations from the base library +License: BSD3 +License-file: LICENSE +Author: Bas van Dijk, Anders Kaseorg +Maintainer: Bas van Dijk +Copyright: (c) 2011-2012 Bas van Dijk, Anders Kaseorg +Homepage: https://github.com/basvandijk/lifted-base +Bug-reports: https://github.com/basvandijk/lifted-base/issues +Category: Control +Build-type: Simple +Cabal-version: >= 1.8 +Description: @lifted-base@ exports IO operations from the base library lifted to + any instance of 'MonadBase' or 'MonadBaseControl'. + . + Note that not all modules from @base@ are converted yet. If + you need a lifted version of a function from @base@, just + ask me to add it or send me a patch. + . + The package includes a copy of the @monad-peel@ testsuite written + by Anders Kaseorg The tests can be performed using @cabal test@. + +extra-source-files: README.markdown, NEWS + +extra-source-files: include/inlinable.h + +-------------------------------------------------------------------------------- + +source-repository head + type: git + location: https://github.com/basvandijk/lifted-base.git + +-------------------------------------------------------------------------------- + +Library + Exposed-modules: Control.Exception.Lifted + Control.Concurrent.MVar.Lifted + Control.Concurrent.Chan.Lifted + Control.Concurrent.QSem.Lifted + Control.Concurrent.QSemN.Lifted + Control.Concurrent.Lifted + Data.IORef.Lifted + Foreign.Marshal.Utils.Lifted + System.Timeout.Lifted + if impl(ghc < 7.8) + Exposed-modules: + Control.Concurrent.SampleVar.Lifted + + Build-depends: base >= 3 && < 5 + , transformers-base >= 0.4 && < 0.5 + , monad-control >= 0.3 && < 1.1 + + Include-dirs: include + Includes: inlinable.h + + Ghc-options: -Wall + +-------------------------------------------------------------------------------- + +test-suite test-lifted-base + type: exitcode-stdio-1.0 + main-is: test.hs + hs-source-dirs: test + + build-depends: lifted-base + , base >= 3 && < 5 + , transformers >= 0.3 && < 0.6 + , transformers-base >= 0.4.4 && < 0.5 + , transformers-compat >= 0.3 && < 0.6 + , monad-control >= 1.0.0.3 && < 1.1 + , HUnit >= 1.2.2 && < 1.5 + , test-framework >= 0.2.4 && < 0.9 + , test-framework-hunit >= 0.2.4 && < 0.4 + + Include-dirs: include + Includes: inlinable.h + + ghc-options: -Wall + +-------------------------------------------------------------------------------- + +benchmark bench-lifted-base + type: exitcode-stdio-1.0 + main-is: bench.hs + hs-source-dirs: bench + + ghc-options: -O2 + + build-depends: lifted-base + , base >= 3 && < 5 + , transformers >= 0.2 && < 0.6 + , criterion >= 1 && < 1.4 + , monad-control >= 0.3 && < 1.1 + , monad-peel >= 0.1 && < 0.3