groom
Pretty printing for well-behaved Show instances.
Automatically derived Show instances are an easy way
to inspect data in your program. However, for large
data-structures, the resulting output lacks
whitespace, making it unreadable. Groom offers an
replacement to `show' called `groom' which attempts
to pretty-print the output of `show'. For example:
> let x = parseExp "foobar 1 [1,2]"
> in do
> putStrLn (show x)
> putStrLn (groom x)
results in:
> ParseOk (App (App (Var (UnQual (Ident "foobar"))) (Lit (Int 1))) (List [Lit (Int 1),Lit (Int 2)]))
> ParseOk
> (App (App (Var (UnQual (Ident "foobar"))) (Lit (Int 1)))
> (List [Lit (Int 1), Lit (Int 2)]))
Groom works only on Show instances that output valid
Haskell code; if Groom can't understand its input,
it will not make any changes.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.2.1 | 2017-04-19 02:30 UTC | EdwardYang | +38/−3 lines, 3 filesdep +groomdep ~basenew-component:exe:groomPVP ok | |
| 0.1.2 | 2013-04-29 01:23 UTC | EdwardYang | +2/−2 lines, 1 filesPVP ok | |
| 0.1.1 | 2011-04-04 21:13 UTC | EdwardYang | +2/−2 lines, 1 filesdep ~haskell-src-extsPVP ok | |
| 0.1 | 2010-07-07 03:20 UTC | EdwardYang | +51/−0 lines, 3 filesdep +basedep +haskell-src-extssetup-changed |
Dependencies of groom-0.1.2.1
base >=3 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
haskell-src-exts >=1.0.0 1.23.1 → 1.24.0
| 2026-07-04 05:40 UTC | 1.24.0 | +1040/−69 lines, 33 filesdep ~arraydep ~ghc-primdep ~prettyPVP ok |
| 2020-06-02 02:38 UTC | 1.23.1 | +16/−8 lines, 7 filesdep ~basePVP ok |
| 2020-01-03 21:30 UTC | 1.23.0 | +1756/−13 lines, 20 filesPVP ok |
| 2019-11-01 02:20 UTC | 1.22.0 | +34529/−31943 lines, 66 filesPVP ok |
| 2019-09-03 18:17 UTC | 1.21.1 | +35/−440 lines, 10 filesdep ~basenew-uploaderPVP: major bump suggested |
showing 5 of 91 versions
Reverse dependencies
20 packages depend on groom