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
Check out this link from typescript playground. I gathered parts of the fp-ts in one place to test and understand how HKT works and simulated. It compiles ok, and runs ok.
I change the HKT1 and HKT2 to something totally nonsense from
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Check out this link from typescript playground. I gathered parts of the fp-ts in one place to test and understand how HKT works and simulated. It compiles ok, and runs ok.
I change the
HKT1
andHKT2
to something totally nonsense fromto
But the code compiles ok. Why?!
The more strange part is if we comment the line...
...which is an overload and the default case. the code stops compiling!
How does HKT works here? How the types
HKT1
is glueingFunctor1
andFunctor2
together underFunctor
?Beta Was this translation helpful? Give feedback.
All reactions