Re:Dimensions and Haskell: Singletons in Action
by harpocrates on Friday July 19, 2019 @09:28PM
(#20483666)
Safety in the form of tightly-fitting types is great, but the signatures definitely suffer a bit in readability (otherwise, Haskell signatures are generally quite helpful when deciphering a functions purpose). I understand why it needs to be this way, but this signature is nasty looking:
In (pseudo code), dependent types would really help out a lot:
It sometimes feels like GHC is a kitchen sink for type-level extensions. I wish the bar for entry for new extensions of this sort was higher and the language a bit more cohesive.
[ Parent
| on HN ]
Re:Dimensions and Haskell: Singletons in Action
by logicchains on Friday July 19, 2019 @10:29PM
(#20483829)
There is a plan to add proper dependent types to GHC: https://gitlab.haskell.org/ghc/ghc/wikis/dependent-haskell. No exact timeline on when it will be ready though.