Hoogle Search

Within LTS Haskell 24.31 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. showException :: Show e => e -> IO String

    extra Extra

    Show a value, but if the result contains exceptions, produce <Exception>. Defined as stringException . show. Particularly useful for printing exceptions to users, remembering that exceptions can themselves contain undefined values.

  2. showDP :: RealFloat a => Int -> a -> String

    extra Numeric.Extra

    Show a number to a fixed number of decimal places.

    showDP 4 pi == "3.1416"
    showDP 0 pi == "3"
    showDP 2 3  == "3.00"
    

  3. showDuration :: Seconds -> String

    extra System.Time.Extra

    Show a number of seconds, typically a duration, in a suitable manner with reasonable precision for a human.

    showDuration 3.435   == "3.44s"
    showDuration 623.8   == "10m24s"
    showDuration 62003.8 == "17h13m"
    showDuration 1e8     == "27777h47m"
    

  4. showBin :: Integral a => a -> ShowS

    base-compat Numeric.Compat

    Show non-negative Integral numbers in base 2.

  5. showFFloatAlt :: RealFloat a => Maybe Int -> a -> ShowS

    base-compat Numeric.Compat

    Show a signed RealFloat value using standard decimal notation (e.g. 245000, 0.0015). This behaves as showFFloat, except that a decimal point is always guaranteed, even if not needed.

  6. showGFloatAlt :: RealFloat a => Maybe Int -> a -> ShowS

    base-compat Numeric.Compat

    Show a signed RealFloat value using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise. This behaves as showFFloat, except that a decimal point is always guaranteed, even if not needed.

  7. showHFloat :: RealFloat a => a -> ShowS

    base-compat Numeric.Compat

    Show a floating-point value in the hexadecimal format, similar to the %a specifier in C's printf.

    >>> showHFloat (212.21 :: Double) ""
    "0x1.a86b851eb851fp7"
    
    >>> showHFloat (-12.76 :: Float) ""
    "-0x1.9851ecp3"
    
    >>> showHFloat (-0 :: Double) ""
    "-0x0p+0"
    

  8. showsInfixPrec :: (Show a, Show b) => String -> Int -> Int -> a -> b -> ShowS

    utility-ht Text.Show.HT

    Show a value using an infix operator.

  9. showsPrecDefault :: (GShow (Rep1 f a), Generic1 f) => Int -> f a -> ShowS

    transformers-compat Data.Functor.Classes.Generic.Internal

    A default showsPrec implementation for Generic1 instances that leverages Show1.

  10. showsPrecOptions :: (GShow (Rep1 f a), Generic1 f) => Options -> Int -> f a -> ShowS

    transformers-compat Data.Functor.Classes.Generic.Internal

    Like showsPrecDefault, but with configurable Options.

Page 28 of many | Previous | Next