Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Util.ApproxEq

Description

ApproxEq class for comparing floating point numbers.

Documentation

class ApproxEq a where Source #

Minimal complete definition

eq

Methods

eq :: Double -> a -> a -> Bool Source #

Instances

ApproxEq Bool # 

Methods

eq :: Double -> Bool -> Bool -> Bool Source #

ApproxEq Char # 

Methods

eq :: Double -> Char -> Char -> Bool Source #

ApproxEq Double # 

Methods

eq :: Double -> Double -> Double -> Bool Source #

ApproxEq Float # 

Methods

eq :: Double -> Float -> Float -> Bool Source #

ApproxEq Int # 

Methods

eq :: Double -> Int -> Int -> Bool Source #

ApproxEq Integer # 

Methods

eq :: Double -> Integer -> Integer -> Bool Source #

ApproxEq Text # 

Methods

eq :: Double -> Text -> Text -> Bool Source #

ApproxEq NoteNumber # 
ApproxEq ScoreTime # 

Methods

eq :: Double -> ScoreTime -> ScoreTime -> Bool Source #

ApproxEq RealTime # 

Methods

eq :: Double -> RealTime -> RealTime -> Bool Source #

ApproxEq a => ApproxEq [a] # 

Methods

eq :: Double -> [a] -> [a] -> Bool Source #

ApproxEq a => ApproxEq (Maybe a) # 

Methods

eq :: Double -> Maybe a -> Maybe a -> Bool Source #

(ApproxEq a, ApproxEq b) => ApproxEq (Either a b) # 

Methods

eq :: Double -> Either a b -> Either a b -> Bool Source #

(ApproxEq a, ApproxEq b) => ApproxEq (a, b) # 

Methods

eq :: Double -> (a, b) -> (a, b) -> Bool Source #

(ApproxEq a, ApproxEq b, ApproxEq c) => ApproxEq (a, b, c) # 

Methods

eq :: Double -> (a, b, c) -> (a, b, c) -> Bool Source #

(ApproxEq a, ApproxEq b, ApproxEq c, ApproxEq d) => ApproxEq (a, b, c, d) # 

Methods

eq :: Double -> (a, b, c, d) -> (a, b, c, d) -> Bool Source #

compare :: (ApproxEq a, Ord a) => Double -> a -> a -> Ordering Source #