Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
showsPrec :: Show a => Int -> a -> ShowSrebase Rebase.Prelude Convert a value to a readable String. showsPrec should satisfy the law
showsPrec d x r ++ s == showsPrec d x (r ++ s)
Derived instances of Read and Show satisfy the following: That is, readsPrec parses the string produced by showsPrec, and delivers the value that showsPrec started with.show_command :: FilePath -> [Text] -> Textshelly Shelly No documentation available.
show_command :: FilePath -> [Text] -> Textshelly Shelly.Lifted No documentation available.
show_command :: FilePath -> [Text] -> Textshelly Shelly.Pipe see show_command
-
Combinators to write Show instances A minimal pretty-printing library for Show instances in Haskell.
showApp :: PrecShowS -> PrecShowS -> PrecShowSshow-combinators Text.Show.Combinators Show a function application.
showCon :: String -> PrecShowSshow-combinators Text.Show.Combinators Show a constructor. Possible constructor names are:
- regular constructors (e.g., "Left");
- parenthesized infix constructors (e.g., "(:)");
- smart constructors, for abstract types (e.g., "Map.fromList").
Example with smart constructor
instance (Show k, Show v) => Show (Map k v) where showsPrec = flip precShows where precShows m = showCon "Map.fromList" @| Map.toList m -- Example output: -- > Map.fromList [(33, True), (55, False)]
showField :: String -> PrecShowS -> ShowFieldsshow-combinators Text.Show.Combinators Show a single record field: a field name and a value separated by '='.
showInfix :: String -> Int -> PrecShowS -> PrecShowS -> PrecShowSshow-combinators Text.Show.Combinators Show an applied infix operator with a given precedence.
showInfix' :: (Show a, Show b) => String -> Int -> a -> b -> PrecShowSshow-combinators Text.Show.Combinators Show an applied infix operator with a given precedence. This is a shorthand for showInfix when the arguments types are instances of Show.
showInfix' op prec x y = showInfix op prec (flip showsPrec x) (flip showsPrec y)