
26 Feb
2009
26 Feb
'09
8:46 p.m.
Hi all, I'm using Control.Monad.StateT as such: data TapState = TapState { planSet :: Bool, noPlan :: Bool, skipAll :: Bool, testDied :: Bool, expectedTests :: Int, executedTests :: Int, failedTests :: Int } deriving (Show) type TAP a = StateT TapState IO a but I'd like to provide my own >>= function. Is there a way to "derive" a new type from StateT in order to implement my own >>=? Is thin done using "instance"? Thanks, Patrick -- ===================== Patrick LeBoutillier Rosemère, Québec, Canada