Tue, 02 Jul 2024 18:01:36 UTC | login

Information for RPM ghc-random-1.2.1.1-1.rvre0.fc38.riscv64.rpm

ID1029091
Nameghc-random
Version1.2.1.1
Release1.rvre0.fc38
Epoch
Archriscv64
SummaryPseudo-random number generation
DescriptionThis package provides basic pseudo-random number generation, including the ability to split random number generators. == "System.Random": pure pseudo-random number interface In pure code, use 'System.Random.uniform' and 'System.Random.uniformR' from "System.Random" to generate pseudo-random numbers with a pure pseudo-random number generator like 'System.Random.StdGen'. As an example, here is how you can simulate rolls of a six-sided die using 'System.Random.uniformR': >>> let roll = uniformR (1, 6) :: RandomGen g => g -> (Word, g) >>> let rolls = unfoldr (Just . roll) :: RandomGen g => g -> [Word] >>> let pureGen = mkStdGen 42 >>> take 10 (rolls pureGen) :: [Word] [1,1,3,2,4,5,3,4,6,2] See "System.Random" for more details. == "System.Random.Stateful": monadic pseudo-random number interface In monadic code, use 'System.Random.Stateful.uniformM' and 'System.Random.Stateful.uniformRM' from "System.Random.Stateful" to generate pseudo-random numbers with a monadic pseudo-random number generator, or using a monadic adapter. As an example, here is how you can simulate rolls of a six-sided die using 'System.Random.Stateful.uniformRM': >>> let rollM = uniformRM (1, 6) :: StatefulGen g m => g -> m Word >>> let pureGen = mkStdGen 42 >>> runStateGen_ pureGen (replicateM 10 . rollM) :: [Word] [1,1,3,2,4,5,3,4,6,2] The monadic adapter 'System.Random.Stateful.runStateGen_' is used here to lift the pure pseudo-random number generator 'pureGen' into the 'System.Random.Stateful.StatefulGen' context. The monadic interface can also be used with existing monadic pseudo-random number generators. In this example, we use the one provided in the <https://hackage.haskell.org/package/mwc-random mwc-random> package: >>> import System.Random.MWC as MWC >>> let rollM = uniformRM (1, 6) :: StatefulGen g m => g -> m Word >>> monadicGen <- MWC.create >>> replicateM 10 (rollM monadicGen) :: IO [Word] [2,3,6,6,4,4,3,1,5,4] See "System.Random.Stateful" for more details.
Build Time2023-06-23 17:17:25 GMT
Size221.73 KB
ff05725d183b8c61d0ca840d76a24de3
LicenseBSD-3-Clause
Provides
ghc-random = 1.2.1.1-1.rvre0.fc38
ghc-random(riscv-64) = 1.2.1.1-1.rvre0.fc38
libHSrandom-1.2.1.1-9dwwB5T9qLUCVJfHh8Y0vo-ghc9.2.6.so()(64bit)
Obsoletes No Obsoletes
Conflicts No Conflicts
Requires
libHSarray-0.5.4.0-ghc9.2.6.so()(64bit)
libHSbase-4.16.4.0-ghc9.2.6.so()(64bit)
libHSbytestring-0.11.4.0-ghc9.2.6.so()(64bit)
libHSdeepseq-1.4.6.1-ghc9.2.6.so()(64bit)
libHSghc-bignum-1.2-ghc9.2.6.so()(64bit)
libHSghc-boot-th-9.2.6-ghc9.2.6.so()(64bit)
libHSghc-prim-0.8.0-ghc9.2.6.so()(64bit)
libHSmtl-2.2.2-ghc9.2.6.so()(64bit)
libHSpretty-1.1.3.6-ghc9.2.6.so()(64bit)
libHSsplitmix-0.1.0.4-KQJjjittnFFJ0Pi3510gQ0-ghc9.2.6.so()(64bit)
libHStemplate-haskell-2.18.0.0-ghc9.2.6.so()(64bit)
libHStransformers-0.5.6.2-ghc9.2.6.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.27)(64bit)
libgmp.so.10()(64bit)
libm.so.6()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1
rtld(GNU_HASH)
Recommends No Recommends
Suggests No Suggests
Supplements No Supplements
Enhances No Enhances
Files
1 through 6 of 6
Name ascending sort Size
/usr/lib/.build-id0.00 B
/usr/lib/.build-id/8d0.00 B
/usr/lib/.build-id/8d/a043ae76724af6c292a0b0e31627ed7fb07d3f90.00 B
/usr/lib64/ghc-9.2.6/lib/libHSrandom-1.2.1.1-9dwwB5T9qLUCVJfHh8Y0vo-ghc9.2.6.so1.49 MB
/usr/share/licenses/ghc-random0.00 B
/usr/share/licenses/ghc-random/LICENSE2.87 KB
Component of
1 through 33 of 33
Buildroot descending sort Created State
f40-build-740963-109874 2023-11-15 04:37:22 expired
f40-build-740928-109868 2023-11-14 19:06:16 expired
f38-build-727199-100575 2023-06-27 03:29:36 expired
f38-build-727195-100563 2023-06-26 21:32:22 expired
f38-build-727194-100563 2023-06-26 19:44:56 expired
f38-build-727163-100533 2023-06-26 15:00:43 expired
f38-build-727058-100501 2023-06-26 09:55:28 expired
f38-build-727046-100501 2023-06-26 09:31:53 expired
f38-build-726952-100450 2023-06-26 05:22:49 expired
f38-build-726944-100438 2023-06-26 03:10:40 expired
f38-build-726941-100438 2023-06-26 02:31:11 expired
f38-build-726938-100438 2023-06-26 02:11:23 expired
f38-build-726935-100438 2023-06-26 01:49:49 expired
f38-build-726925-100438 2023-06-26 00:58:35 expired
f38-build-726916-100438 2023-06-26 00:06:53 expired
f38-build-726909-100434 2023-06-25 22:51:18 expired
f38-build-726905-100424 2023-06-25 19:24:12 expired
f38-build-726896-100434 2023-06-25 18:48:44 expired
f38-build-726762-100358 2023-06-25 13:33:53 expired
f38-build-726720-100309 2023-06-25 11:32:53 expired
f38-build-726613-100233 2023-06-25 06:48:27 expired
f38-build-726575-100185 2023-06-25 02:28:45 expired
f38-build-726574-100185 2023-06-25 00:40:00 expired
f38-build-726573-100185 2023-06-24 22:49:43 expired
f38-build-726571-100185 2023-06-24 21:05:03 expired
f38-build-726557-100185 2023-06-24 19:10:25 expired
f38-build-726536-100164 2023-06-24 18:13:29 expired
f38-build-726503-100152 2023-06-24 16:22:10 expired
f38-build-726485-100142 2023-06-24 16:00:49 expired
f38-build-726473-100129 2023-06-24 15:38:02 expired
f38-build-726268-100032 2023-06-24 09:56:54 expired
f38-build-726131-99945 2023-06-24 01:49:33 expired
f38-build-726125-99945 2023-06-23 23:43:54 expired