Great resource, thanks for putting it out on the web for everyone to learn from.
I thought the type and output of newTyVar was a little ugly, so I wrote up a little patch to change it:
It no longer requires an argument, which is quite satisfying looking in the Monad.
It produces more friendly TyVar values.
This is mostly an aesthetic thing as I much prefer type variables (a, b, c, d, ..., aa, ab, ...) to (a0, a1, a2, a3, a4, ...). If you don't agree then feel free to reject this PR.
Great resource, thanks for putting it out on the web for everyone to learn from.
I thought the type and output of
newTyVar
was a little ugly, so I wrote up a little patch to change it:This is mostly an aesthetic thing as I much prefer type variables (a, b, c, d, ..., aa, ab, ...) to (a0, a1, a2, a3, a4, ...). If you don't agree then feel free to reject this PR.