# https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name mtl-compat Name: ghc-%{pkg_name} Version: 0.2.1.3 Release: 1%{?dist} Summary: Backported Control.Monad.Except module from mtl License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-mtl-devel # End cabal-rpm deps %description This package backports the "Control.Monad.Except" module from 'mtl' (if using 'mtl-2.2.0.1' or earlier), which reexports the 'ExceptT' monad transformer and the 'MonadError' class. This package should only be used if there is a need to use the 'Control.Monad.Except' module specifically. If you just want the 'mtl' class instances for 'ExceptT', use 'transformers-compat' instead, since 'mtl-compat' does nothing but reexport the instances from that package. Note that unlike how 'mtl-2.2' or later works, the "Control.Monad.Except" module defined in this package exports all of 'ExceptT''s monad class instances. Therefore, you may have to declare 'import Control.Monad.Except ()' at the top of your file to get all of the 'ExceptT' instances in scope. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %license LICENSE %doc LICENSE %files devel -f %{name}-devel.files %doc README.md CHANGELOG.md %changelog * Mon Jul 20 2015 Ben Boeckel - 0.2.1.3-1 - initial package - spec file generated by cabal-rpm-0.9.6