Copyright | (c) Justus Adam, 2015 |
---|---|
License | LGPL-3 |
Maintainer | development@justusadam.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Hold the capeablilities to get and export in- and output data as well as (de)serialize it
- mapToJSON :: ToJSON a => Map Text a -> Value
- formatSchedule :: Show s => MappedSchedule s -> Text
- shortSubject :: Show s => s -> String
- data DataFile = DataFile [Rule] [Lesson Text]
- eitherDecode :: FromJSON a => ByteString -> Either String a
- scheduleToJson :: ToJSON a => MappedSchedule a -> Value
Documentation
mapToJSON :: ToJSON a => Map Text a -> Value
Convert a suitable Map to a JSON Value
formatSchedule :: Show s => MappedSchedule s -> Text
Transform a MappedSchedule
into a printable,
and more importantly, readable Text
shortSubject :: Show s => s -> String
Shorten a subject to something printable
data DataFile
Base structure of the input JSON file
eitherDecode :: FromJSON a => ByteString -> Either String a
scheduleToJson :: ToJSON a => MappedSchedule a -> Value