Skip to content

Implement toList directly in the Foldable instance#36

Merged
spl merged 1 commit into
spl:masterfrom
RyanGlScott:toList
Feb 9, 2020
Merged

Implement toList directly in the Foldable instance#36
spl merged 1 commit into
spl:masterfrom
RyanGlScott:toList

Conversation

@RyanGlScott

Copy link
Copy Markdown
Contributor

Currently, the Foldable DList instance relies on the default implementation of toList. However, this default implementation is somewhat indirect since it uses foldr. toList can be more directly implemented as toList = Data.DList.toList, which avoids the need for foldr entirely.

Currently, the `Foldable DList` instance relies on the default
implementation of `toList`. However, this default implementation is
somewhat indirect since it uses `foldr`. `toList` can be more
directly implemented as `toList = Data.DList.toList`, which avoids
the need for `foldr` entirely.
@spl

spl commented Feb 9, 2020

Copy link
Copy Markdown
Owner

Looks good to me. Thanks!

@spl spl merged commit e6ac31c into spl:master Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants