1. dafis
  2. floatshow

Commits

dafis  committed d1d43e0

Corrected a few typos in haddocks

  • Participants
  • Parent commits c4f62f6
  • Branches default

Comments (0)

Files changed (1)

File Text/FShow/Raw.hs

View file
  • Ignore whitespace
   --   specifying that as a constant will be faster than calculating the
   --   logarithm for each individual mantissa.
   --   If @x = m*2^e@ with @m /= 0@, then
-  --   @'decodeL' x == ('integerLog2' (abs m), m, e)@ must hold.
+  --   @'decodeL' x == ('integerLog2' ('abs' m), m, e)@ must hold.
   {-# INLINE decodeL #-}
   decodeL :: a -> (Int, Integer, Int)
   decodeL x = case decode x of
   --   when it is nonzero,
   --
   -- @
-  --   'showDigits' _ = 2 + 'floor' ((highBit+1) * 'logBase 10 2)
+  --   'showDigits' _ = 2 + 'floor' ((highBit+1) * 'logBase' 10 2)
   -- @
   --
   --   is sufficient to make the values and formatted 'String's
   --   So, with mantissae of width varying over a large range, the only
   --   feasible way of obtaining a bijection between values and their
   --   decimal representations is printing to full precision in
-  --   general, optionally capping atthe upper limit.
+  --   general, optionally capping at the upper limit.
   --
   --   The default implementation prints values exactly, which in general
   --   is undesirable because it involves huge 'Integer's and long