1
0

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
This commit is contained in:
Peter Simons 2018-01-12 20:56:24 +00:00 committed by Git OBS Bridge
parent fa14f234f2
commit d2dcc17cc3
2 changed files with 98 additions and 0 deletions

View File

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

96
lifted-base.cabal Normal file
View File

@ -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 <v.dijk.bas@gmail.com>
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