doc: haddock all the things