Hoogle Search
Within LTS Haskell 24.19 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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)
showInfixl :: String -> Int -> PrecShowS -> PrecShowS -> PrecShowSshow-combinators Text.Show.Combinators Show an applied infix operator which is left associative (infixl). Use with care.
Warning
This combinator assumes that, if there is another infix operator to the left, it is either left associative with the same precedence, or it has a different precedence. An expression containing two operators at the same level with different associativities is ambiguous and will not be shown correctly with showInfixl and showInfixr. By default, prefer showInfix and showInfix'.