We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Without all the associated machinery, we want something like this (but less hand-wavy):
sealed abstract class ABT[F[_], A] final case class Var[F[_], A](v: String) extends ABT[F, A] final case class Abs[F[_], A](v: String, term: F[A]) extends ABT[F, A] type BoundExpr[F[_], A] = HCoproduct(ABT, Expr, F, A)
which relies on us having mutual recursion, but gives us multi-sorted ABTs pretty simply, I think.
The text was updated successfully, but these errors were encountered:
And maybe with a module-level existential encoding of v so users cannot synthesize their own variable identifiers out of thin air.
v
Sorry, something went wrong.
Yeah, I actually had a different encoding of vars, but thought it cluttered up the hand-waving.
No branches or pull requests
Without all the associated machinery, we want something like this (but less hand-wavy):
which relies on us having mutual recursion, but gives us multi-sorted ABTs pretty simply, I think.
The text was updated successfully, but these errors were encountered: