On 9 June 2017 at 09:41, Tony Morris <tmorris@tmorris.net> wrote:
> Are there any DList specific functions, that are not provided by existing
> type-classes (such as Foldable), that are typically used? I can think of a
> few, but they are all in lens.
singleton, cons, snoc
Though if you have singleton (which can be obtained from either Endo
or GHC.Ext.IsList.fromList and `(:[])`; alternatively you could use
pure/return but that is less pleasant IMO than the singleton function
for code legibility purposes) and mappend you can do cons and snoc.
>
> On Tue, Jun 6, 2017 at 4:24 PM, Henning Thielemann
> <lemming@henning-thielemann.de> wrote:
>>
>>
>> On Mon, 5 Jun 2017, David Feuer wrote:
>>
>>> DList x just doesn't have much more to offer than Endo [x]. We already
>>> have Endo; ergo, we don't need DList.
>>
>>
>> I admit that I already used Endo as a quickly available DList replacement.
>>
>> _______________________________________________
>> Libraries mailing list
>> Libraries@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
>
>
> _______________________________________________
> Libraries mailing list
> Libraries@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>