miniblog.
← Back to all posts
Feb 18, 2017 at 23:53
Reading about the nonempty list type in Haskell:
https://wiki.haskell.org/Non-empty_list
(example of the 'enforce everything in the type system' philosophy)
Non-empty list - HaskellWiki
wiki.haskell.org/Non-empty_list
Wilfred Hughes
Related Posts
Mar 5, 2017 at 13:05
Intriguingly, Haskell has *three* exponentiation operators to ensure everything is type safe:
exponent - Exponentiation in Haskell - Stack Overflow
Wilfred Hughes
Shared words: Haskell, type, everything Score: 91.7
Apr 19, 2014 at 12:19
Dark, unsound corners of the Haskell type system:
GeneralizedNewtypeDeriving is Profoundly Unsafe
It is a well known fact in the Haskell community that GeneralizedNewtypeDeriving as currently implemented is unsafe. What I don't think pe...
Wilfred Hughes
Shared words: Haskell, type, system Score: 87.4
Jul 28, 2019 at 12:02
Nifty example of a Haskell lens library using custom type errors to explain what's wrong:
silica/README.md at master · evertedsphere/silica
optics for Haskell with the most amazing type errors you've seen - evertedsphere/silica
Wilfred Hughes
Shared words: Haskell, type, example Score: 86.8