Implementing simple business model in Haskell
- by elmes
Supose we have a very simple model:
Station has at least one Train
Train has at least two Stations
The model has to allow to check what stations any given train visits and to check what trains visit a particular station.
How to model it in Haskell?
I am a Haskell newbie, so please correct me: once an object is created, you cannot modify it -…