[Haskell-beginners] Bool newtype
rein.henrichs at gmail.com
Sat Aug 13 20:27:22 UTC 2016
Consider replacing your bools with meaningful sum types, which avoids this
issue, prevents boolean blindness, and makes your code more
For example, instead of newtype SwitchsState = SwitchState Bool, data
SwitchState = On | Off
On Sun, Aug 7, 2016 at 2:47 PM Imants Cekusins <imantc at gmail.com> wrote:
> found it:
> yep, it type checks.
> Beginners mailing list
> Beginners at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners