Copyright | (c) Sebastiaan la Fleur, 2014 |
---|---|
License | BSD3 |
Maintainer | sebastiaan.la.fleur@gmail.com |
Stability | experimental |
Portability | All |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
In the EventLoop module, Float
s are used to express positions and other characteristics. As that package is also used
in the functional programming lab at the University of Twente, compatibility with the FPPrac module is needed.
That module expresses a Number
type which abstracts from Int
and Double
types. This module is used to normalize
both the Number
type and the original Num
class instances defined in Haskell.
- class Num a => NormalizeNumber a where
Documentation
class Num a => NormalizeNumber a where Source
Class to express that the instance a
is able to be normalized to a Float
.
NormalizeNumber Double | How to normalize a |
NormalizeNumber Float | How to normalize a |
NormalizeNumber Int | How to normalize an |
NormalizeNumber Integer | How to normalize an |
NormalizeNumber Number | How to normalize a |