f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 10 forks source link

Fix local haddock generation #203

Closed kejace closed 4 years ago

kejace commented 4 years ago

We seem to be running into this: https://github.com/polysemy-research/polysemy-zoo/issues/55

hs-abci-sdk         > <command line>: Could not find module ‘Polysemy.Plugin’
hs-abci-sdk         > Use -v to see a list of the files searched for.

One potential fix would be to have a custom Setup.hs like here: https://github.com/achirkin/easytensor/blob/4cc9a381ad09c7a013a121cc02231f0ac2de649d/dimensions/Setup.hs

However, for hs-abci-sdk, we already have a custom Setup.hs so some work is required.

If we decide to only use haddock for pushing docs to the website (#190), then a workaround is to do what's suggested in the issue https://github.com/polysemy-research/polysemy-zoo/issues/55 by temporarily disabling the plugins while building docs. This is is easy to put into the docs script.