restartable: Minimal live coding library for model-view-event-update applications.

[ bsd3, control, library ] [ Propose Tags ]

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

[Last Documentation]

  • Control
    • Restartable
      • Control.Restartable.Checkpoint
      • Control.Restartable.Initial
  • Test
    • Test.Initial

Downloads

Maintainer's Corner

Package maintainers

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 365 total (9 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]

Readme for restartable-0.2.0.0

[back to package description]

legio-decima