You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In section 7.1.2 it is mentioned that we can generalize the pattern of creating existential constraint kinds by implementing Has and creating type aliases for HasShow and Dynamic in terms of it.
However no further mention is given to how the code from the prior example should be updated since removing the data constructors breaks liftD2 and the prior elimHasShow and elimDynamic functions. It would be cool to show how to update the prior code so that it compiles again or, if appropriate skills have been learned, to make it an exercise to fix it.
The text was updated successfully, but these errors were encountered:
In section
7.1.2
it is mentioned that we can generalize the pattern of creating existential constraint kinds by implementingHas
and creating type aliases forHasShow
andDynamic
in terms of it.However no further mention is given to how the code from the prior example should be updated since removing the data constructors breaks
liftD2
and the priorelimHasShow
andelimDynamic
functions. It would be cool to show how to update the prior code so that it compiles again or, if appropriate skills have been learned, to make it an exercise to fix it.The text was updated successfully, but these errors were encountered: