An example of back-propagation implemented in Haskell.