News for hackers. Stuff that matters.
Re:The algebra and calculus of algebraic data types by Quekid5 on Saturday September 08, 2018 @05:44PM (#17942939)
AFAIUI:

"Void -> a" means that the function cannot be called, because there no way to conjure a Void value. In Haskell, you can do it by (ab)using 'undefined', but that's kind of cheating. However, if you're using Idris with totality checking, I don't think you'll actually get any code calling such a function compile.

The "a -> Void" means that the function can never return.

Re:The algebra and calculus of algebraic data types by matt-noonan on Saturday September 08, 2018 @09:12PM (#17943739)
`Void -> a` is inhabited by the slightly weird empty-case construct in (GHC) Haskell: `\x -> case x of {}` has type `Void -> a`
Re:The algebra and calculus of algebraic data types by uryga on Saturday September 08, 2018 @11:31PM (#17944199)
Also known as the `absurd` function IIRC?