Need to move `@@type` methods to `String` primatives
You should at LEAST get it right
So I jumped the gun on Sanctuary Type Identifiers. They need to be String primitives and NOT functions that return a String primitive. See when happens when we try to integrate...Patterns that contradict the already established pattern of methods everywhere :smh:. Even though it is kinda gross, we already started this Team Player route, so we should finish it!!
But I think this is as far as we are going to go, sanctuary types and as much Fantasy Land as we can muster.
This is great, I appreciate the effort. It's going to open up this library for me to use, uninhibited. However… 😁 I'd love to see some Sanctuary types to use with sanctuary-def. It may be a while before I can get to it, but I wouldn't mind getting my hands dirty with that effort if you are open to the idea. To be able to do something like:
const main =
def(
'main',
{},
[$.String, IOType],
input => IO.of(() => console.log(input))
);
main(1) // Error!
Totally open!!
This has been resolved with 0.9.0. Closing