2 Dec 23:09
Deriving
From: Daryoush Mehrtash <dmehrtash <at> gmail.com>
Subject: Deriving
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-12-02 22:11:53 GMT
Subject: Deriving
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-12-02 22:11:53 GMT
What happens when a type adds driving such as:
newtype SupplyT s m a = SupplyT (StateT [s] m a)
deriving (Functor, Monad, MonadTrans, MonadIO)
Two questions:
How does the deriving implement the instance?
Is there a way for me to add my own classes in the deriving? for example
newtype .....
deriving( xyz)
Thanks
newtype SupplyT s m a = SupplyT (StateT [s] m a)
deriving (Functor, Monad, MonadTrans, MonadIO)
Two questions:
How does the deriving implement the instance?
Is there a way for me to add my own classes in the deriving? for example
newtype .....
deriving( xyz)
Thanks
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed