
10 Jan
2011
10 Jan
'11
6:24 p.m.
On 10 January 2011 22:26, Stephen Tetley
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.