News for hackers. Stuff that matters.
Re:The Algebra of Algebraic data types by yummyfajitas on Thursday June 25, 2015 @01:22PM (#9779432)
`Just x` cannot be constructed since there is no `x` which is has type `Void`.
Re:The Algebra of Algebraic data types by tel on Thursday June 25, 2015 @02:09PM (#9779801)
Well, there's the one in context that does! Except this function can never be called in an empty context so you ultimately are stuck.
Re:The Algebra of Algebraic data types by bweitzman on Thursday June 25, 2015 @04:45PM (#9780803)
`Just x` can be constructed given an `x`. The fact that no `x` can be given is somewhat irrelevant to the definition of the function.