全部搜索项
trixie  ] [  forky  ] [  sid  ]
[ 源代码: haskell-groom  ]

软件包:haskell-groom-utils(0.1.2.1-2)

haskell-groom-utils 的相关链接

Screenshot

Debian 的资源:

下载源码包 haskell-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.

其他与 haskell-groom-utils 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 haskell-groom-utils

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 1,782.4 kB14,476.0 kB [文件列表]
arm64 1,781.9 kB15,981.0 kB [文件列表]
armel 2,417.4 kB17,679.0 kB [文件列表]
armhf 2,226.9 kB15,814.0 kB [文件列表]
i386 2,619.5 kB21,782.0 kB [文件列表]
ppc64el 1,752.8 kB21,596.0 kB [文件列表]
riscv64 2,285.0 kB17,564.0 kB [文件列表]
s390x 3,414.8 kB29,362.0 kB [文件列表]