Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
|
@twitu Please check #1890 (comment) see if it make sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to understand when to use Kind and when to use HKT. Here's my current understanding -
HKT gives the the type a specific shape and specific names to the fields. It can be considered a low level kind definition to create my own types. If I use this structure I will still get the advantage of all the type classes defined for HKT.
Anything with a type parameter
Athat can be added toURItoKindcan be looked up from it as aKind. But Kind too implements many type classes. Almost identical example -However looking at a few data types e.g.
Either,Json,Optionthey don't have the fields ofHKTso can only be used withKindrelated typeclasses.My question then is when to
Kindand when to useHKT? Are the HKT related typeclasses available for backward compatibility?Beta Was this translation helpful? Give feedback.
All reactions