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?
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.