Skip to content

Commit

Permalink
Move to random-1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
idontgetoutmuch committed Jun 27, 2020
1 parent 2d2c31e commit 4016399
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages: random-fu/
random-source/
rvar/
tests/speed/
4 changes: 2 additions & 2 deletions random-fu/random-fu.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: random-fu
version: 0.2.7.4
version: 0.2.7.5
stability: provisional

cabal-version: >= 1.6
Expand Down Expand Up @@ -91,7 +91,7 @@ Library

build-depends: math-functions,
monad-loops >= 0.3.0.1,
random,
random >= 1.2.0,
random-shuffle,
random-source == 0.3.*,
rvar == 0.2.*,
Expand Down
4 changes: 2 additions & 2 deletions random-source/random-source.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: random-source
version: 0.3.0.8
version: 0.3.0.9
stability: provisional

cabal-version: >= 1.6
Expand Down Expand Up @@ -82,7 +82,7 @@ Library

build-depends: flexible-defaults >= 0.0.0.2,
mersenne-random-pure64,
random,
random == 1.2.0,
stateref >= 0.3 && < 0.4,
template-haskell,
th-extras,
Expand Down
13 changes: 13 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ let
random-fu = super.haskell.lib.disableLibraryProfiling (hself.callPackage ./random-fu { });
random-source = super.haskell.lib.disableLibraryProfiling (hself.callPackage ./random-source { });
rvar = super.haskell.lib.disableLibraryProfiling (hself.callPackage ./rvar { });

# random =
# let newRandomSrc = builtins.fetchGit {
# url = "https://github.com/idontgetoutmuch/random.git";
# rev = "8ac2c89c8394555f56ade4eda34051599833e885";
# ref = "v1.2-proposal";
# };
# ran = hself.callCabal2nix "random" newRandomSrc {};
# in
# super.haskell.lib.dontCheck ran;

};
};
};
Expand All @@ -16,5 +27,7 @@ in
nixpkgs.myHaskellPackages.callPackage ./tests/speed {
random-source = nixpkgs.myHaskellPackages.random-source;
random-fu = nixpkgs.myHaskellPackages.random-fu;
# rvar = nixpkgs.myHaskellPackages.rvar;
# random = nixpkgs.myHaskellPackages.random;
}

2 changes: 1 addition & 1 deletion tests/speed/Bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Control.Monad.State
import qualified Control.Monad.Random as CMR
import Control.Monad.Trans (lift)
import Foreign
import System.Random
import System.Random hiding (uniform)
import qualified System.Random.MWC as MWC
import TestSupport
import qualified Data.Vector.Unboxed as Vec
Expand Down
5 changes: 3 additions & 2 deletions tests/speed/speed-tests.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: speed-tests
version: 0.0.0.1
version: 0.0.0.2
stability: experimental

cabal-version: >= 1.2
Expand All @@ -12,7 +12,8 @@ description: Various benchmarks for the random-fu library.

flag split-random-fu

Executable random-fu-bench
executable random-fu-bench
type: exitcode-stdio-1.0
main-is: Bench.hs
build-depends: base >= 4, criterion, MonadRandom, mtl,
stateref, mersenne-random-pure64, mwc-random >= 0.5,
Expand Down

0 comments on commit 4016399

Please sign in to comment.