update haddock example