Skip to content

Generic schemes use foldl #34

@isovector

Description

@isovector

I don't know enough to have a strong opinion here, but the HS community seems to be firmly behind using foldl' over foldl. However, this library uses foldl in a number of places:

go x = foldl k (f x) (gmapQ go x)

else foldl k v (gmapQ go x)

go s x = foldl f r (gmapQ (go s') x)

. foldl unJust []

This seems likely to be an easy performance win

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions