Sam A. Horvath-Hunt

Results 399 comments of Sam A. Horvath-Hunt

tshm-docs-ts is in the Nix shell as of https://github.com/samhh/fp-ts-std/commit/34754889a78ff402ad328e85909cc5df73ed864c.

GitHub now supports deploying docs via Actions. Rough example of how this could look: ```yaml on: push: branches: - master jobs: docs: name: Publish docs runs-on: ubuntu-latest permissions: contents: read...

I suspect we'd need to rewrite the function to be overloaded so that each branch can infer its own generics, but there might be a smarter way with newer type...

@DenisFrezzato Wouldn't that be susceptible to a race condition for async types? i.e. I'd anticipate task memoisation reusing an in-flight promise.

What about an `IORef`?

Should be resolved in the `esm` branch, however that's blocked by docs-ts: https://github.com/gcanti/docs-ts/issues/59#issuecomment-1614600958

Actually in different projects I'm seeing different results. One works, the other complains about the fp-ts imports. :unamused:

I think 0.18.0-beta.3 is the first to work fully with both proper ESM and CJS. Depending on the consuming project different packaging issues can surface, most of which don't reveal...

Nope, spoke too soon, the fp-ts imports need updating. :rage:

Webpack: ``` ERROR in ./node_modules/fp-ts-std/dist/esm/URL.js 2:0-34 Module not found: Error: Can't resolve 'fp-ts/Either' in '/path/to/repo/node_modules/fp-ts-std/dist/esm' Did you mean 'Either.js'? BREAKING CHANGE: The request 'fp-ts/Either' failed to resolve only because it...