Commits

dafis  committed 122f686

modified haddock markup

  • Participants
  • Parent commits 864e67b

Comments (0)

Files changed (1)

File Text/FShow/RealFloat.hs

 --   type with floating-point radix 2, such that the mantissa
 --   returned by 'decodeFloat' satisfies
 --
--- > 2^(binExp x) <= fst (decodeFloat x) < 2^(binExp x + 1)
+-- @
+--   2^('binExp' x) <= 'fst' ('decodeFloat' x) < 2^('binExp' x + 1)
+-- @
 --
 --   for @x > 0@, so @'binExp' x = 'floatDigits' x - 1@.
 --   The number of decimal digits that may be required is calculated
 --   with the formula
 --
--- > decDigits x = 2 + floor (floatDigits x * logBase 10 2).
+-- @
+--   'decDigits' x = 2 + 'floor' ('floatDigits' x * 'logBase' 10 2).
+-- @
 --
 --   The default implementation uses an approximation of
 --   @'logBase' 10 2@ sufficient for mantissae of up to
   --   uniquely determine a value of type @a@.
   --   For faster conversions which need not satisfy
   --
-  -- > x == read (fshow x)
+  -- @
+  --   x == 'read' ('fshow' x)
+  -- @
   --
   --   a smaller value can be given.
   decDigits     :: a -> Int