Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Lab3Help
- 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.
Constructors
BLineTable | |
Fields
|
Instances
Show BLineTable |
data BLineStop
Description of a bus stop, as part of a bus line.
Constructors
BLineStop | |
Instances
Show BLineStop |
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