Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
LiBro data transformations for storage
Synopsis
- newtype IdList = IdList {}
- idListToStr :: IdList -> String
- strToIdList :: String -> IdList
- data TaskRecord = TaskRecord {}
- tasksToTaskRecords :: Tasks -> [TaskRecord]
- taskRecordsToTasks :: Persons -> [TaskRecord] -> Tasks
- storePersons :: Persons -> LiBro ()
- loadPersons :: LiBro Persons
- storeTasks :: Tasks -> LiBro ()
- loadTasks :: Persons -> LiBro Tasks
- storeData :: LiBroData -> LiBro ()
- loadData :: LiBro LiBroData
Handling of multiple IDs in a single value
idListToStr :: IdList -> String Source #
Storable task records
data TaskRecord Source #
A data type specialized to store Task
information in tables.
Instances
tasksToTaskRecords :: Tasks -> [TaskRecord] Source #
Store Task
s using TaskRecord
s.
taskRecordsToTasks :: Persons -> [TaskRecord] -> Tasks Source #
Load Task
s from TaskRecord
s. Needs to lookup Person
s.
Top level data handling
loadPersons :: LiBro Persons Source #
Load a list of Person
s from the configured storage space.
Returns empty data if no input file was found.