- Install pandoc. Make sure it's on your
PATH
. - Add this package as a dependency.
- Add the following to the top of your module:
{-# OPTIONS_GHC -fplugin=HaddockMd #-}
You can also enable it for the entire package (using cabal as an example):
ghc-options: -fplugin=HaddockMd
You can also choose a different format that pandoc supports reading:
-fplugin=HaddockMd:rst