News for hackers. Stuff that matters.
Re:Haskell's kind system: a primer by state_less on Thursday October 18, 2018 @09:23AM (#18248077)
I always thought it was beautiful that Haskell turned type construction into just another function on a different domain. What do people call this abstraction?
Re:Haskell's kind system: a primer by kccqzy on Thursday October 18, 2018 @12:32PM (#18249740)
Type-level functions are called type families. They are really not just another function. But if you appreciate that beauty, check out a dependently types language like Idris where normal functions can be used on the type-level as well. So you might have a vector type with a length computed by a complicated expression.
Re:Haskell's kind system: a primer by danharaj on Thursday October 18, 2018 @12:01PM (#18249427)