TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New extension to Haskell -- data types and polymorphism at the type level

73 pointsby donsover 13 years ago

5 comments

JoshTriplettover 13 years ago
This extension (together with the type-level built-in literals, described in section 8.3 of the paper) looks like it will address the major remaining wart I've observed in Haskell: the widespread use of complex type-level programming to make up for deficiencies in the type system. Many packages on Hackage have deep type-level hackery under the surface, and that hackery often creates subtle differences and incompatibilities.
评论 #3175297 未加载
lubutuover 13 years ago
So if we have polymorphic types, and now polymorphic kinds, if we call those first- and second-order polymorphism, why can't we extend this to higher orders? For instance, third-order would be when our kinds' types are also polymorphic.
评论 #3175200 未加载
bremacover 13 years ago
Interesting. The extensions to the type system remind me of Ωmega (<a href="http://code.google.com/p/omega/" rel="nofollow">http://code.google.com/p/omega/</a>), though without higher-order kinds.<p>EDIT: Turns out "Programming in Omega" is cited by the section on related work. No wonder the mention of proving red-black trees using type-level computation seemed familiar...
评论 #3174996 未加载
skybrianover 13 years ago
It sounds pretty neat, but how could all this intimidating-looking type theory this be made useful for ordinary programmers who don't know what a monad is?
评论 #3176491 未加载
dramaticus3over 13 years ago
You dawg!, I hear you like type systems ...