[Haskell-beginners] Trying to find an alternative StateMonad
Patrick LeBoutillier
patrick.leboutillier at gmail.com
Wed Apr 14 18:49:26 EDT 2010
Hi,
Sorry I can't be of much help here, but I have a question though:
>
> data StateCmd a where
> Put :: a -> StateCmd a
> Undo :: StateCmd a
> Redo :: StateCmd a
> deriving (Show, Functor)
I'm not familiar with the above syntax (data ... where). What does it
do exactly?
Patrick
--
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada
More information about the Beginners
mailing list