(use-modules (guix packages)) (use-modules (guix download)) (use-modules (guix build-system haskell)) (use-modules (guix licenses)) (use-modules (gnu packages)) (use-modules (gnu packages haskell)) (use-modules (gnu packages haskell-xyz)) (use-modules (gnu packages haskell-crypto)) (define-public ghc-cabal-doctest (package (name "ghc-cabal-doctest") (version "1.0.8") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/cabal-doctest/cabal-doctest-" version ".tar.gz")) (sha256 (base32 "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0")))) (build-system haskell-build-system) (arguments `(#:cabal-revision ("2" "05v1awad3d1wvc763xcgvxm4n6n7bs7byc6s14kdbw35zcaddlcb"))) (home-page "https://github.com/phadej/cabal-doctest") (synopsis "A Setup.hs helper for doctests running") (description "Currently (beginning of 2017), there isn't @cabal doctest@ command. Yet, to properly work doctest needs plenty of configuration. This library provides the common bits for writing custom Setup.hs See for the progress of @cabal doctest@, i.e. whether this library is obsolete.") (license bsd-3))) (define-public ghc-pcg-random (package (name "ghc-pcg-random") (version "0.1.3.7") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/pcg-random/pcg-random-" version ".tar.gz")) (sha256 (base32 "1l6jq5nvmg1ygk7i7g50s47p6qkh74p9avl1wbcxdl5m85lc5j76")))) (build-system haskell-build-system) (inputs `(("ghc-primitive" ,ghc-primitive) ("ghc-random" ,ghc-random) ("ghc-entropy" ,ghc-entropy) ("ghc-doctest" ,ghc-doctest) ("ghc-cabal-doctest" ,ghc-cabal-doctest))) (native-inputs `(("ghc-doctest" ,ghc-doctest) ("ghc-cabal-doctest" ,ghc-cabal-doctest))) (home-page "http://github.com/cchalmers/pcg-random") (synopsis "Haskell bindings to the PCG random number generator.") (description "PCG is a family of simple fast space-efficient statistically good algorithms for random number generation. Unlike many general-purpose RNGs, they are also hard to predict. . This library implements bindings to the standard C implementation. This includes the standard, unique, fast and single variants in the pcg family. There is a pure implementation that can be used as a generator with the random package as well as a faster primitive api that includes functions for generating common types. . The generators in this module are suitable for use in parallel but make sure threads don't share the same generator or things will go horribly wrong.") (license bsd-3))) ghc-pcg-random