revise .cabal

This commit is contained in:
Jens Petersen 2018-07-29 00:53:28 +09:00
parent 8ec15269fc
commit fd10635469
2 changed files with 57 additions and 2 deletions

50
STMonadTrans-0.4.3.cabal Normal file
View File

@ -0,0 +1,50 @@
name: STMonadTrans
version: 0.4.3
x-revision: 1
cabal-version: >= 1.8
license: BSD3
license-file: LICENSE
author: Josef Svenningsson
maintainer: josef.svenningsson@gmail.com
category: Monads
build-type: Simple
synopsis: A monad transformer version of the ST monad
description:
A monad transformer version of the ST monad
Warning! This monad transformer should not be used with monads that
can contain multiple answers, like the list monad. The reason is that
the state token will be duplicated across the different answers and
this causes Bad Things to happen (such as loss of referential
transparency). Safe monads include the monads State, Reader, Writer,
Maybe and combinations of their corresponding monad transformers.
extra-source-files:
changelog.md
source-repository head
type: git
location: https://github.com/josefs/STMonadTrans
flag splitBase
description: Choose the new smaller, split-up base package.
library
build-depends: base >= 4.6
if flag(splitBase)
build-depends: base >= 3, base < 5, mtl, array
else
build-depends: base < 3
exposed-modules:
Control.Monad.ST.Trans,
Control.Monad.ST.Trans.Internal
extensions: CPP, MagicHash, UnboxedTuples, Rank2Types, FlexibleInstances,
MultiParamTypeClasses, UndecidableInstances
Test-Suite foo
type: detailed-0.9
hs-source-dirs: test
test-module: Test
build-depends: STMonadTrans, base, mtl, array, Cabal

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.1
# generated by cabal-rpm-0.12.5
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name STMonadTrans
@ -8,12 +8,13 @@
Name: ghc-%{pkg_name}
Version: 0.4.3
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A monad transformer version of the ST monad
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
@ -48,6 +49,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@ -79,6 +81,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.4.3-7
- revise .cabal
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild