Electronic order book in Haskell