spl / dlist

Difference lists in Haskell
https://hackage.haskell.org/package/dlist
BSD 3-Clause "New" or "Revised" License
65 stars 15 forks source link

Export DList constructor #14

Closed sol closed 10 years ago

sol commented 10 years ago

@spl My main motivation to do this is that you can do stuff like DL $ shows a. But I think it's a good idea anyway, to allow the user to accommodate for things that we haven't thought of.

sol commented 10 years ago

@spl BTW, new release to Hackage would be much appreciated ;)

sol commented 10 years ago

Hmm, skimming over #4, making it abstract was done on purpose. Even though I understand the reasoning, this makes dlist less useful, which would mean that I roll my own...

spl commented 10 years ago

@sol Sorry, the constructor is hidden for safety. It may be a tradeoff with performance, but I don't think you lose too much (efficiency-wise) using IsString/fromString/fromList. Alternatively, you can use an older version of dlist.