Partially applied type aliases? #106
Replies: 2 comments
-
Or is this a feature? xD |
Beta Was this translation helpful? Give feedback.
-
Ha, interesting example. I first thought it was a bug in Koka but now I remember that aliases always must be fully applied and cannot be partially applied (so, indeed, a "feature" :-) ). The reason is quite fundamental, during type inference we may have to determine an equality like This is a fundamentally hard problem (and dependent type systems have this as there the Actually, Haskell has the same restriction but GHC has the liberalized type synonyms extension that delays kind checking until after full alias expansion but Koka does not do that (yet?) |
Beta Was this translation helpful? Give feedback.
-
This gives me an error like:
Beta Was this translation helpful? Give feedback.
All reactions