random-extras 0.17 → 0.18
raw patch · 6 files changed
+31/−6 lines, 6 files
Files
- Data/Random/Distribution/Uniform/Exclusive.hs +1/−1
- Data/Random/Dovetail.hs +1/−1
- Data/Random/Show/Unsafe.hs +24/−0
- Data/Random/Shuffle/Weighted.hs +1/−1
- README +1/−1
- random-extras.cabal +3/−2
Data/Random/Distribution/Uniform/Exclusive.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE FlexibleContexts #-} {- |-Module : Data.Random.Extras+Module : Data.Random.Distribution.Uniform.Exclusive Copyright : 2010 Aristid Breitkreuz License : BSD3 Stability : experimental
Data/Random/Dovetail.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE FlexibleContexts #-} {- |-Module : Data.Random.Extras+Module : Data.Random.Dovetail Copyright : 2010 Aristid Breitkreuz License : BSD3 Stability : experimental
+ Data/Random/Show/Unsafe.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE TypeSynonymInstances #-}++{- |+Module : Data.Random.Show.Unsafe+Copyright : 2010 Aristid Breitkreuz+License : BSD3+Stability : experimental+Portability : portable++Unsafely 'show' a 'RVar' by taking a random sample. Uses 'unsafePerformIO'.++Contains an instance of 'Show' for 'RVar'.+-}++module Data.Random.Show.Unsafe+()+where++import Data.Random.RVar+import Data.Random.Source.DevRandom+import System.IO.Unsafe++instance (Show a) => Show (RVar a) where+ show rv = show . unsafePerformIO $ runRVar rv DevURandom
Data/Random/Shuffle/Weighted.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE FlexibleContexts #-} {- |-Module : Data.Random.Extras+Module : Data.Random.Shuffle.Weighted Copyright : 2010 Aristid Breitkreuz License : BSD3 Stability : experimental
README view
@@ -1,4 +1,4 @@-Random-extras 0.17+Random-extras 0.18 ------------------ This package contains additional monadic functions for random values.
random-extras.cabal view
@@ -1,7 +1,7 @@ Name: random-extras -- http://www.haskell.org/haskellwiki/Package_versioning_policy-Version: 0.17+Version: 0.18 Synopsis: Additional functions for random values. Description: Additional functions for random values, based on random-fu. Inspired by random-shuffle. Homepage: http://github.com/aristidb/random-extras@@ -20,7 +20,8 @@ Data.Random.Distribution.Uniform.Exclusive, Data.Random.Dovetail, Data.Random.Extras,- Data.Random.Shuffle.Weighted+ Data.Random.Shuffle.Weighted,+ Data.Random.Show.Unsafe Build-depends: base >=4 && <5,