write haddock comment