restartable: Minimal live coding library for model-view-event-update applications.
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.
[Skip to Readme]
Modules
- Control
- Restartable
- Control.Restartable.Checkpoint
- Control.Restartable.Initial
- Restartable
- Test
- Test.Initial
Downloads
- restartable-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0, 0.3.0.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | aeson, base (>=4.7 && <5), bytestring, unix [details] |
License | BSD-3-Clause |
Copyright | '2020 |
Author | Michał J. Gajda |
Maintainer | mjgajda@migamake.com |
Home page | https://github.com/mjgajda/restartable#readme |
Bug tracker | https://github.com/mjgajda/restartable/issues |
Source repo | head: git clone https://github.com/mjgajda/restartable |
Uploaded | by MichalGajda at 2020-11-09T12:37:20Z |
Distributions | |
Downloads | 428 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2020-11-09 [all 3 reports] |