Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Data/Random/Show/Unsafe.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module Data.Random.Show.Unsafe
where

import Data.Random.RVar
import Data.Random.Source.DevRandom
import System.IO.Unsafe
import System.Random.Stateful

instance (Show a) => Show (RVar a) where
show rv = show . unsafePerformIO $ runRVar rv DevURandom
show rv = show . unsafePerformIO $ runRVar rv globalStdGen
10 changes: 4 additions & 6 deletions random-extras.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@ Library
Data.Random.Distribution.Uniform.Exclusive,
Data.Random.Dovetail,
Data.Random.Extras,
Data.Random.Shuffle.Weighted

if !os(windows)
Exposed-modules: Data.Random.Show.Unsafe
Data.Random.Shuffle.Weighted,
Data.Random.Show.Unsafe

Build-depends:
base >=4 && <5,
containers >=0.3,
array >=0.3,
random-fu ==0.2.*,
random-source ==0.3.*
random-fu ==0.3.*,
random == 1.2.*

-- Other-modules:

Expand Down