sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.03k stars 94 forks source link

Possible example bug #656

Closed coodoo closed 4 years ago

coodoo commented 4 years ago

Seemed the example for S.concat needs some update? For now it returned with errors.

S.concat (Sum (18)) (Sum (24))
// Sum (42)
davidchambers commented 4 years ago

In which context are you seeing an error, @coodoo? On the website? In the REPL?

coodoo commented 4 years ago

I typed it out in my file and ran it, seemed Sum is missing and there’s no way to import it?

davidchambers commented 4 years ago

Sum is defined in test/internal/Sum.js. It is not exported, because it was only intended to be used in examples. You are welcome to use it, of course, but you would need to depend on the Git repository rather than the npm package.

Gitter is another good place for asking questions. :)