[Haskell-cafe] Using ShowS or Difference Lists

Bas van Dijk v.dijk.bas at gmail.com
Mon Feb 8 18:45:47 EST 2010

On Sat, Feb 6, 2010 at 1:42 PM, Mark Spezzano
<mark.spezzano at chariot.net.au> wrote:
> Just wondering whether I can use ShowS or tupling or Difference Lists to speed up the following code?...

In case you do want to use a difference list, you could also use a
DString[1]. A DString is just a newtype wrapper around a difference
list. It has an instance for IsString[2] so you can create them by
writing string literals.



[1] http://hackage.haskell.org/package/dstring
[2] http://hackage.haskell.org/packages/archive/base/

More information about the Haskell-Cafe mailing list