Safe Haskell | None |
---|---|
Language | Haskell2010 |
Another way to desugar overloaded numeric literals. See FromNatural
.
An explicit list expression, e.g. [1, True]
is desugared to
cons 1 (cons True nil)
Enabled with:
{-# OPTIONS -fplugin=Overloaded -fplugin-opt=Overloaded:Lists #-}
Documentation
Class for nil, []
See test-suite for ways to define instances for Map
.
There are at-least two-ways.
class Cons x ys zs | zs -> x ys where Source #
Class for Cons :
.