Replies: 2 comments 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
-
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
A
that can be added toURItoKind
can 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
,Option
they don't have the fields ofHKT
so can only be used withKind
related typeclasses.My question then is when to
Kind
and when to useHKT
? Are the HKT related typeclasses available for backward compatibility?Beta Was this translation helpful? Give feedback.
All reactions