Safe Haskell | None |
---|---|
Language | Haskell2010 |
This Module exports the main datatype of this library: Task. It is provided with FromJSON and ToJSON instances.
Documentation
A Task represents a task from taskwarrior. See https://taskwarrior.org/docs/design/task.html for the specification of the fields. The specification demands, that the existence of some fields is dependent on the status of the task. Those fields are therefore bundled in status as a sum-type.
All fields in an imported task which are not part of the specification will be put in the UDA (user defined attributes) HashMap.
Since the json can have multiple semantically equivalent representations of a task first serializing and then deserializing is not identity. But deserializing and then serializing should be. (Thus making serializing and deserializing idempotent.)
Task | |
|
A Tag can be basically any string. But beware: Special symbols work but might clash with task
cli syntax.