[Haskell-cafe] bottom/unconditionally false in Haskell

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Mon May 31 16:43:52 UTC 2021


On Mon, May 31, 2021 at 11:39:39AM -0500, Galaxy Being wrote:
> I just ran into this formula
> 
> head = foldr (<<) ⊥ where x << y = x
> 
> I understand it's a sort of pseudo-code

It's less "pseudo" than you think!  This works:

    head = foldr (<<) undefined where x << y = x


More information about the Haskell-Cafe mailing list