[Haskell-cafe] Can't derive Binary for StdGen

2009-08-20 Thread Grigory Sarnitskiy
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?

Re: [Haskell-cafe] Can't derive Binary for StdGen

2009-08-20 Thread Max Desyatov
Grigory Sarnitskiy sargrig...@ya.ru writes: 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-Derive-Binary.html instead.