SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

ghc-partial-handler rpm build for : OpenSuSE. For other distributions click ghc-partial-handler.

Name : ghc-partial-handler
Version : 1.0.2 Vendor : openSUSE
Release : bp150.2.6 Date : 2018-07-30 20:24:23
Group : Development/Libraries/Haskell Source RPM : ghc-partial-handler-1.0.2-bp150.2.6.src.rpm
Size : 0.04 MB
Packager : https://bugs_opensuse_org
Summary : A composable exception handler
Description :
If you have ever had to compose an exception handler for exceptions of multiple
types, you know how frustraiting it can get. This library approaches this issue
by providing a composable exception handler type, which has instances of the
standard classes.

Composability means that you can define custom partial handlers and reuse them
by composing other handlers from them.

Here is an example of a composable partial handler, which only defines what to
do in case of a ThreadKilled exception (the code uses the LambdaCase
extension):

>ignoreThreadKilled :: PartialHandler () >ignoreThreadKilled = > typed $ case >
ThreadKilled -> Just $ return () > _ -> Nothing

Here\'s how you can construct a handler of type \'SomeException -> IO ()\' using
this library:

>totalizeRethrowing $ > ignoreThreadKilled < > > onAlreadyExists (putStrLn
\"Already exists\")

and here is how you would do it traditionally (with the MultiWayIf extension):

>e -> if > | Just ThreadKilled < - fromException e -> > return () > | Just e\' < -
fromException e, isAlreadyExistsError e\' -> > putStrLn \"Already exists\" > |
otherwise -> > throwIO e

Putting all the syntactic trickery to make it shorter aside, this handler is a
monolith block of code. Unlike with PartialHandler you can neither decompose it
into simpler ones, nor compose it with other handlers to form a more complex
one.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15/standard/x86_64

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  ghc-partial-handler-1.0.2-bp150.2.6.x86_64.rpm
     

Provides :
ghc-partial-handler
ghc-partial-handler(x86-64)
libHSpartial-handler-1.0.2-3FnpEIsFh82ILj9fZUs4q1-ghc8.0.2.so()(64bit)

Requires :
libHSbase-4.9.1.0-ghc8.0.2.so()(64bit)
libHSghc-prim-0.5.0.0-ghc8.0.2.so()(64bit)
libHSinteger-gmp-1.0.0.1-ghc8.0.2.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libgmp.so.10()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib64/ghc-8.0.2/partial-handler-1.0.2-3FnpEIsFh82ILj9fZUs4q1
/usr/lib64/ghc-8.0.2/partial-handler-1.0.2-3FnpEIsFh82ILj9fZUs4q1/libHSpartial-handler-1.0.2-3FnpEIsFh82ILj9fZUs4q1-ghc8.0.2.so
/usr/share/doc/packages/ghc-partial-handler
/usr/share/doc/packages/ghc-partial-handler/LICENSE

 
ICM