Репозиторий Sisyphus
Последнее обновление: 23 мая 2019 | Пакетов: 17692 | Посещений: 13589164
en ru br
Репозитории ALT

Группа :: Разработка/Haskell
Пакет: ghc7.6.1-monad-control

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ghc_version 7.6.1
%define hsc_name ghc
%define hsc_version %ghc_version
%define hsc_namever %hsc_name%hsc_version
%define h_pkg_name monad-control
%define f_pkg_name monad-control
%define pkg_libdir %_libdir/%hsc_name-%hsc_version/lib/%h_pkg_name-%version

Name: %hsc_namever-%f_pkg_name
Version: 0.3.1.4
Release: alt2
License: BSD3
Packager: Denis Smirnov <mithraen at altlinux.ru>
Group: Development/Haskell
Url: https://github.com/basvandijk/monad-control
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Summary: Lift control operations, like exception catching, through monad transformers



# Automatically added by buildreq on Sat Dec 22 2012 (-bb)

# optimized out: elfutils ghc7.4.2-common ghc7.6.1 ghc7.6.1-common ghc7.6.1-transformers libgmp-devel pkg-config python-base rpm-build-haskell
BuildRequires: ghc7.6.1-base-unicode-symbols ghc7.6.1-cpphs ghc7.6.1-doc ghc7.6.1-hscolour ghc7.6.1-transformers-base

%description
This package defines the type class  at MonadBaseControl at , a subset of
at MonadBase at  into which generic control operations such as  at catch at  can be
lifted from  at IO at  or any other base monad. Instances are based on monad
transformers in  at MonadTransControl at , which includes all standard monad
transformers in the  at transformers at  library except  at ContT at .

See the  at lifted-base at  package which uses  at monad-control at  to lift  at IO at
operations from the  at base at  library (like  at catch at  or  at bracket at ) into any
monad that is an instance of  at MonadBase at  or  at MonadBaseControl at .

Note that this package is a rewrite of Anders Kaseorg's  at monad-peel at
library. The main difference is that this package provides CPS style
operators and exploits the  at RankNTypes at  and  at TypeFamilies at  language
extensions to simplify and speedup most definitions.

The following  at criterion at  based benchmark shows that  at monad-control at  is on
average about 99% faster than  at monad-peel at :

at git clone <https://github.com/basvandijk/bench-monad-peel-control> at

%prep
%setup
%patch -p1

%build
%hs_configure2
%hs_build

%install
%hs_install
%hs_gen_filelist

%files -f %name-files.all

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin