Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
List instances of the standard haskell numerical classes with
standard haskell truncating behaviour. Provides instances for
Num
, Fractional
and Floating
.
[1,2] + [3,4,5] == [4,6] [1,2,3] * [4,5] == [4,10]
Literals are interpreted as infinte lists.
[1,2,3] + 4 == [5,6,7] [1,2,3] * 4 == [4,8,12]