Safe Haskell | None |
---|---|
Language | Haskell2010 |
Control.Restartable.Checkpoint
Description
Make a checkpointable session
provided that session state implements Initial
.
Documentation
restartable :: Initial a => FilePath -> (a -> IO (a, Ending)) -> IO () Source #
Should be used to wrap main
.
Way in which game terminated.
Instances
Eq Ending Source # | |
Ord Ending Source # | |
Show Ending Source # | |
Generic Ending Source # | |
type Rep Ending Source # | |
Defined in Control.Restartable.Checkpoint type Rep Ending = D1 (MetaData "Ending" "Control.Restartable.Checkpoint" "restartable-0.3.0.0-4InokSX3uFXKWMfC4WsXGs" False) (C1 (MetaCons "Quit" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Restart" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Continue" PrefixI False) (U1 :: Type -> Type))) |