The latest version of restartable is 0.3.0.0-0.

restartable

Version 0.2.0.0 revision 0 uploaded by MichalGajda.

Package meta

Synopsis
Minimal live coding library for model-view-event-update applications.
Description

Minimal live coding library. It can store model of the model-view-event-update applications. It uses FromJSON and ToJSON with default value for absent data elements, and Generic parser otherwise:

import Initially(initially, Initial)
data MyModel = Model { timestamp :: UTCTime }
instance ToJSON MyModel where
instance FromJSON MyModel where
  parseJSON = initially myDefaultValue
instance Initial MyModel

main = restartable

It is preferred to attach initial value to every substructure, so whenever it fails to parse the remaining part of the state is still parsed correctly.

Author
Michał J. Gajda
Bug reports
https://github.com/mjgajda/restartable/issues
Category
n/a
Copyright
'2020
Homepage
https://github.com/mjgajda/restartable#readme
Maintainer
mjgajda@migamake.com
Package URL
n/a
Stability
n/a

Components