product operator in the docs is incorrect
cscalfani opened this issue · comments
Charles Scalfani commented
The docs say to use (/)
for product
but the code uses (~)
:
infixr 0 product as ~
Nathan Faubion commented
(/)
is slightly more general since it takes care of some syntactic conveniences for static prefixes and suffixes, but is otherwise an alias for product
.
purescript-routing-duplex/src/Routing/Duplex/Generic/Syntax.purs
Lines 26 to 29 in a763797
foo / bar
is the same for as foo ~ bar
given two codecs, however /
lets you do things like "api" / foo / bar / "edit"
and still keep the foo ~ bar
equivalence.
Charles Scalfani commented
Thanks. I see.
May I suggest adding:
import Routing.Duplex.Generic.Syntax ((/))
to the docs at the point where this operator is introduced.