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.

  1. liftShowtPrec :: TextShow1 f => (Int -> a -> Text) -> ([a] -> Text) -> Int -> f a -> Text

    text-show TextShow

    showtPrec function for an application of the type constructor based on showtPrec and showtList functions for the argument type. The current implementation is based on liftShowbPrec internally. Since: 3.4

  2. liftShowtPrec2 :: TextShow2 f => (Int -> a -> Text) -> ([a] -> Text) -> (Int -> b -> Text) -> ([b] -> Text) -> Int -> f a b -> Text

    text-show TextShow

    showtPrec function for an application of the type constructor based on showtPrec and showtList functions for the argument type. The current implementation is based on liftShowbPrec2 internally. Since: 3.4

  3. liftShowtlPrec :: TextShow1 f => (Int -> a -> Text) -> ([a] -> Text) -> Int -> f a -> Text

    text-show TextShow

    showtlPrec function for an application of the type constructor based on showtlPrec and showtlList functions for the argument type. The current implementation is based on liftShowbPrec internally. Since: 3.4

  4. liftShowtlPrec2 :: TextShow2 f => (Int -> a -> Text) -> ([a] -> Text) -> (Int -> b -> Text) -> ([b] -> Text) -> Int -> f a b -> Text

    text-show TextShow

    showtlPrec function for an application of the type constructor based on showtlPrec and showtlList functions for the argument type. The current implementation is based on liftShowbPrec2 internally. Since: 3.4

  5. traceTextShow :: TextShow a => a -> b -> b

    text-show TextShow.Debug.Trace

    Like tracet, but uses showt on the argument to convert it to a Text. This makes it convenient for printing the values of interesting variables or expressions inside a function. For example here we print the value of the variables x and z:

    f x y =
    traceTextShow (x, z) $ result
    where
    z = ...
    ...
    
    Since: 2

  6. traceTextShowId :: TextShow a => a -> a

    text-show TextShow.Debug.Trace

    Like traceTextShow but returns the shown value instead of a third value. Since: 2

  7. traceTextShowM :: (TextShow a, Applicative f) => a -> f ()

    text-show TextShow.Debug.Trace

    Like tracetM, but uses showt on the argument to convert it to a Text.

    ... = do
    x <- ...
    traceTextShowM x
    y <- ...
    traceTextShowM $ x + y
    
    Since: 2

  8. genericTraceTextShow :: (Generic a, GTextShowT (Rep a ())) => a -> b -> b

    text-show TextShow.Debug.Trace.Generic

    A Generic implementation of traceTextShow. Since: 2

  9. genericTraceTextShowId :: (Generic a, GTextShowT (Rep a ())) => a -> a

    text-show TextShow.Debug.Trace.Generic

    A Generic implementation of traceTextShowId. Since: 2

  10. genericTraceTextShowM :: (Generic a, GTextShowT (Rep a ()), Applicative f) => a -> f ()

    text-show TextShow.Debug.Trace.Generic

    A Generic implementation of traceShowM. Since: 2

Page 263 of many | Previous | Next