Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
goldenShowable :: (Show a, Read a) => String -> a -> Golden asandwich Test.Sandwich.Golden timeItShow :: (MonadIO m, Show a) => m a -> m atimeit System.TimeIt Like timeIt, but uses the show rendering of a as label for the timing.
assertEqualNoShow :: (HasCallStack, Eq a) => String -> a -> a -> YesodExample site ()yesod-test Yesod.Test Asserts that the two given values are equal.
traceShow :: Show a => a -> b -> bghc-internal GHC.Internal.Debug.Trace Like trace, but uses show on the argument to convert it to a String. This makes it convenient for printing the values of interesting variables or expressions inside a function. For example, here we print the values of the variables x and y:
>>> let f x y = traceShow ("x", x, "y", y) (x + y) in f (1+2) 5 ("x",3,"y",5) 8Note in this example we also create simple labels just by including some strings.traceShowId :: Show a => a -> aghc-internal GHC.Internal.Debug.Trace Like traceShow but returns the shown value instead of a third value.
>>> traceShowId (1+2+3, "hello" ++ "world") (6,"helloworld") (6,"helloworld")
traceShowM :: (Show a, Applicative f) => a -> f ()ghc-internal GHC.Internal.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 18traceShowWith :: Show b => (a -> b) -> a -> aghc-internal GHC.Internal.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]
-
ghc-internal GHC.Internal.IO.Handle hShow is in the IO monad, and gives more comprehensive output than the (pure) instance of Show for Handle.
-
ghc-internal GHC.Internal.System.IO hShow is in the IO monad, and gives more comprehensive output than the (pure) instance of Show for Handle.
-
gi-pango GI.Pango.Enums how to render invisible characters (tAttrInt). Since 1.44