SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

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

Name : ghc-runmemo
Version : 1.0.0.1 Vendor : openSUSE
Release : bp150.2.6 Date : 2018-07-30 20:25:14
Group : Development/Libraries/Haskell Source RPM : ghc-runmemo-1.0.0.1-bp150.2.6.src.rpm
Size : 0.01 MB
Packager : https://bugs_opensuse_org
Summary : A simple memoization helper library
Description :
This library encourages you to do memoization in three separate steps:

(1) Create a memoizable function

(2) Create or select an appropriate memoizer

(3) Run the memoizer on the memoizable function

Let\'s start with the first. When you create a memoizable function, you should
use the \'self\' convention, which is that the first input to the function is
\'self\', and all recursive calls are replaced with \'self\'. One common convention
that goes well with the \'self\' convention is using a helper function \'go\', like
so:

\' fib :: Memoizable (Integer -> Integer) fib self = go where go 0 = 1 go 1 = 1
go n = self (n-1) + self (n-2) \'

Now for the second. For this example, we need a Memoizer that can handle an
\'Integer\' input, and an \'Integer\' output. \'Data.MemoCombinators\' provides
\'integral\', which handles any \'Integral\' input, and any output.
\'Data.MemoUgly\' provides \'memo\', which can memoize any function \'a -> b\', given
an \'Ord\' instance for \'a\'.

Third, let\'s run our memoizers! Since we have decoupled the definition of the
memoized function from its actual memoization, we can create multiple memoized
versions of the same function if we so desire.

\' import qualified Data.MemoUgly as Ugly import qualified Data.MemoCombinators
as MC

fibUgly :: Integer -> Integer fibUgly = runMemo Ugly.memo fib

fibMC :: Integer -> Integer fibMC = runMemo MC.integral fib \'

You could easily do the same with \'Data.MemoTrie.memo\',
\'Data.Function.Memoize.memoize\', etc.

Using this technique, you can create local memoized functions whose memo tables
are garbage collected as soon as they are no longer needed.

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-runmemo-1.0.0.1-bp150.2.6.x86_64.rpm
     

Provides :
ghc-runmemo
ghc-runmemo(x86-64)
libHSrunmemo-1.0.0.1-7H80gSK9MAvKRy8240garc-ghc8.0.2.so()(64bit)

Requires :
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(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/runmemo-1.0.0.1-7H80gSK9MAvKRy8240garc
/usr/lib64/ghc-8.0.2/runmemo-1.0.0.1-7H80gSK9MAvKRy8240garc/libHSrunmemo-1.0.0.1-7H80gSK9MAvKRy8240garc-ghc8.0.2.so
/usr/share/doc/packages/ghc-runmemo
/usr/share/doc/packages/ghc-runmemo/LICENSE

 
ICM