alla flaggor
trixie  ] [  forky  ] [  sid  ]
[ Källkod: haskell-groom  ]

Paket: libghc-groom-dev (0.1.2.1-2)

Länkar för libghc-groom-dev

Screenshot

Debianresurser:

Hämta källkodspaketet haskell-groom:

Ansvariga:

Externa resurser:

Liknande paket:

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.

This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.

Andra paket besläktade med libghc-groom-dev

  • beror
  • rekommenderar
  • föreslår
  • enhances

Hämta libghc-groom-dev

Hämtningar för alla tillgängliga arkitekturer
Arkitektur Paketstorlek Installerad storlek Filer
amd64 8,0 kbyte53,0 kbyte [filförteckning]
arm64 8,3 kbyte102,0 kbyte [filförteckning]
armhf 8,0 kbyte45,0 kbyte [filförteckning]
i386 8,6 kbyte53,0 kbyte [filförteckning]
ppc64el 8,5 kbyte104,0 kbyte [filförteckning]
riscv64 8,6 kbyte51,0 kbyte [filförteckning]
s390x 8,3 kbyte50,0 kbyte [filförteckning]