Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

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

  1. traceShowId :: Show a => a -> a

    base Debug.Trace

    Like traceShow but returns the shown value instead of a third value.

    >>> traceShowId (1+2+3, "hello" ++ "world")
    (6,"helloworld")
    (6,"helloworld")
    

  2. traceShowM :: (Show a, Applicative f) => a -> f ()

    base Debug.Trace

    Like traceM, but uses show on the argument to convert it to a String.

    >>> :{
    do
    x <- Just 3
    traceShowM x
    y <- pure 12
    traceShowM y
    pure (x*2 + y)
    :}
    3
    12
    Just 18
    

  3. traceShowWith :: Show b => (a -> b) -> a -> a

    base Debug.Trace

    Like traceWith, but uses show on the result of the function to convert it to a String.

    >>> traceShowWith length [1,2,3]
    3
    [1,2,3]
    

  4. hShow :: Handle -> IO String

    base System.IO

    hShow is in the IO monad, and gives more comprehensive output than the (pure) instance of Show for Handle.

  5. hShow :: Handle -> IO String

    base GHC.IO.Handle

    hShow is in the IO monad, and gives more comprehensive output than the (pure) instance of Show for Handle.

  6. coarbitraryShow :: Show a => a -> Gen b -> Gen b

    QuickCheck Test.QuickCheck

    coarbitrary helper for lazy people :-).

  7. forAllShow :: Testable prop => Gen a -> (a -> String) -> (a -> prop) -> Property

    QuickCheck Test.QuickCheck

    Like forAll, but with an explicitly given show function.

  8. forAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> String) -> (a -> prop) -> Property

    QuickCheck Test.QuickCheck

    Like forAllShrink, but with an explicitly given show function.

  9. functionShow :: (Show a, Read a) => (a -> c) -> a :-> c

    QuickCheck Test.QuickCheck

    Provides a Function instance for types with Show and Read.

  10. propertyForAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> [String]) -> (a -> prop) -> Property

    QuickCheck Test.QuickCheck

    Optional; used internally in order to improve shrinking. Tests a property but also quantifies over an extra value (with a custom shrink and show function). The Testable instance for functions defines propertyForAllShrinkShow in a way that improves shrinking.

Page 224 of many | Previous | Next