Can't derive Binary for StdGen

20 Aug
2009
20 Aug
'09
11:05 a.m.
Hello! I'm trying to derive Binary for StdGen with DrIFT: module Main where import System.Random import Data.Binary {-!for StdGen derive : Binary !-} data Foo = Foo StdGen StdGen deriving (Show) {-! derive : Binary !-} but I got error "DrIFT: can't find module System/Random" What shall I do?

20 Aug
20 Aug
12:15 p.m.
Grigory Sarnitskiy
Hello! I'm trying to derive Binary for StdGen with DrIFT: [...] but I got error "DrIFT: can't find module System/Random" What shall I do?
I'd use http://hackage.haskell.org/packages/archive/derive/2.0.1/doc/html/Data-Deriv... instead.
5753
Age (days ago)
5753
Last active (days ago)
1 comments
2 participants
participants (2)
-
Grigory Sarnitskiy
-
Max Desyatov