[Haskell-beginners] filesystem verification utility

Stephen Tetley stephen.tetley at gmail.com
Tue Jan 11 00:24:29 CET 2011


On 10 January 2011 22:26, Stephen Tetley <stephen.tetley at gmail.com> wrote:
> And append (++) inside the genPattern function...
>

Changing to use "functional strings" which have the ShowS type is the
obvious way to avoid the cost of (++) append. There is a library on
Hackage that provides many utility functions for a wrapped ShowS type
and an IsString instance so you can still use string literals.

http://hackage.haskell.org/package/dstring

However you might be better using one of the alternative String
packages such as Text or ByteString.



More information about the Beginners mailing list