Safe Haskell | Safe-Inferred |
---|
- data BStop = BStop {}
- data BLineTable = BLineTable {
- lineNumber :: Integer
- stops :: [BLineStop]
- data BLineStop = BLineStop {}
- readStops :: FilePath -> IO (Either String [BStop])
- readLines :: FilePath -> IO (Either String [BLineTable])
Documentation
data BLineTable
Description of a bus line.
BLineTable | |
|
Show BLineTable |
readStops :: FilePath -> IO (Either String [BStop])
Tries to read a list of bus stops from the given file. If an
error is encountered, then an error message is returned (
).
Left
msg
readLines :: FilePath -> IO (Either String [BLineTable])
Tries to read information about bus lines from the given file. If
an error is encountered, then an error message is returned (
).
Left
msg