Remix.run Logo
ackfoobar 5 days ago

Good point, well there's Ordering type built-in in Haskell (LT | EQ | GT). Ordering -> bool has 2^3=8 values (const true, const false, == LT, == EQ, == GT, is_lte, is_gte, ne)

EDIT: now you see why I used the smallest type possible to make my point. Exponentials get big FAST (duh).

jolmg 3 days ago | parent [-]

> now you see why I used the smallest type possible

I think the length's worth it for the sake of a crystal clear enumeration.