I just learned this trick from version 1.2 of the aeson library.
Unfortunately, if we do this, haddock will not document the options fields appropriately. See issue https://github.com/haskell/haddock/issues/3 . As a workaround, we can simply move their documentation into the documentation comment for the data type.
I just learned this trick from version 1.2 of the
aeson
library.Unfortunately, if we do this, haddock will not document the options fields appropriately. See issue https://github.com/haskell/haddock/issues/3 . As a workaround, we can simply move their documentation into the documentation comment for the data type.