Copyright | (c) Andrew Lelechenko 2014-2015 |
---|---|
License | GPL-3 |
Maintainer | andrew.lelechenko@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Provides types and necessary instances for rational numbers, extended with infinite values. Just use RationalInf
instead of Rational
from Data.Ratio.
Documentation
Extends a rational type with positive and negative infinities.
Eq t => Eq (RatioInf t) Source # | |
Integral t => Fractional (RatioInf t) Source # | |
Integral t => Num (RatioInf t) Source # | |
Integral t => Ord (RatioInf t) Source # | |
Integral t => Real (RatioInf t) Source # | |
Show t => Show (RatioInf t) Source # | |
Memoizable a => Memoizable (RatioInf a) Source # | |
(Integral t, Pretty t) => Pretty (RatioInf t) Source # | |
type RationalInf = RatioInf Integer Source #
Arbitrary-precision rational numbers with positive and negative infinities.
Orphan instances
Memoizable a => Memoizable (Ratio a) Source # | |