Conversation
542617f to
0b9e7c7
Compare
|
@sectore what needs to happen to get a local preprocessor working for nix? Note that |
| ``` | ||
| cabal install docgen:docgen --overwrite-policy=always |
There was a problem hiding this comment.
Just FYI: With latest commits in current PR, Nix users will have docgen on PATH by entering nix develop shell by default. Not sure if its worth to mention it in dev.md as this document is for non Nix users only.
|
Please double check |
|
I don't understand why sdist is failing. Packcheck is supposed to be reproducable when you run it locally, but it works absolutely fine on my laptop. I can't figure out why the sdist check would handle docgen differently
That's great! I'll add a note that it's only for non-nix users. Actually, it probably makes sense to have completely separate nix and non-nix dev documents. I assume other things in dev.md don't apply? Certainly not brew install npm. |
57f80b5 to
f42fda4
Compare
|
Grrr, it doesn't look like this is going to work: composewell/packcheck#121 (comment) |
Nice!
Yes and yes. Please try to bring commits 13af33c (HEAD -> docgen, origin/docgen) nix: `docgen` on PATH
4242287 fix(nix): preprocessor failed |
Oh, I'm sorry, I didn't realize you had pushed to this branch. I was confused how I got out of sync.
Ha, no, it's bad news. I'm not sure the local pre-processor approach will work at all. Maybe the right thing to do is to publish the preprocessor to hackage or research how other people are accomplishing the same thing. Having type-checked examples in your haddock is incredibility useful, I can't be the only one who wants to do that. |
|
Our options are as follows: (See this reddit thread)
Doctest is more standard, and we don't have to publish anything. Our docgen produces better output, and doesn't break HLS editor integration to find errors in the examples. I'm leaning towards publishing docgen to hackage, leaving it specific to hyperbole, and namespacing it as hyperbole-docgen. That's the least amount of work, and I really like having the examples typechecked in real haskell modules |
|
@sectore Could you help me repair the nix config? I decided we should publish Specifically I changed:
|
|
@sectore See above. I don't want this branch to get too out of date before merging |
Do current changes work for you? I have tried to fix Nix, but it's not that easy... Now we have a Before I continue to try to make Nix work, could you make |
That's expected. With the current approach, it can't be fixed until we cut a release. It needs a |
Why not publishing a simple package No another |

Switched docgen to be a preprocessor, and updated build-tools to depend on it. This works out of the box for cabal build and cabal haddock, but unfortunately requires manaully installing the preprocessor to your PATH for HLS to work. I can't think of a workaround.
I suppose we could easily add a line to the developer instructions in the README to remind people to run:
cabal install docs:docgen