Fix diagrams in haddock for palettes.