[Haskell-cafe] GHCI says we all drink left-handed
MarLinn
monkleyon at gmail.com
Sat Apr 1 11:36:31 UTC 2017
You are right. But it gets worse! At first I assumed GHCi might just be
saying "All left-handed people should be allowed to drink" but now I'm
convinced it's biased. Following your definitions:
Prelude> any (<3) (Left Handed)
Prelude> False
Ouch! No love for left-handed people at all!
On 2017-04-01 13:08, Andreas Abel wrote:
> GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
> Prelude> data Handed = Handed
> Prelude> let drink beer = beer
> Prelude> all drink (Left Handed)
> True
>
More information about the Haskell-Cafe
mailing list