diff options
Diffstat (limited to 'libraries/base/GHC/Real.hs')
-rw-r--r-- | libraries/base/GHC/Real.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libraries/base/GHC/Real.hs b/libraries/base/GHC/Real.hs index c96959f55b..da64c8b00d 100644 --- a/libraries/base/GHC/Real.hs +++ b/libraries/base/GHC/Real.hs @@ -138,7 +138,7 @@ class (Num a, Ord a) => Real a where -- -- The Haskell Report defines no laws for 'Integral'. However, 'Integral' -- instances are customarily expected to define a Euclidean domain and have the --- following properties for the 'div'/'mod' and 'quot'/'rem' pairs, given +-- following properties for the `div`\/`mod` and `quot`\/`rem` pairs, given -- suitable Euclidean functions @f@ and @g@: -- -- * @x@ = @y * quot x y + rem x y@ with @rem x y@ = @fromInteger 0@ or @@ -182,8 +182,8 @@ class (Real a, Enum a) => Integral a where -- | Fractional numbers, supporting real division. -- --- The Haskell Report defines no laws for 'Fractional'. However, '(+)' and --- '(*)' are customarily expected to define a division ring and have the +-- The Haskell Report defines no laws for 'Fractional'. However, @('+')@ and +-- @('*')@ are customarily expected to define a division ring and have the -- following properties: -- -- [__'recip' gives the multiplicative inverse__]: @@ -194,9 +194,9 @@ class (Real a, Enum a) => Integral a where class (Num a) => Fractional a where {-# MINIMAL fromRational, (recip | (/)) #-} - -- | fractional division + -- | Fractional division. (/) :: a -> a -> a - -- | reciprocal fraction + -- | Reciprocal fraction. recip :: a -> a -- | Conversion from a 'Rational' (that is @'Ratio' 'Integer'@). -- A floating literal stands for an application of 'fromRational' |