- , , , , :
import Control.Applicative
applyAll' fs v = fs <*> pure v
applyAll'' fs v = fs <*> [v]
This type makes things more complicated than necessary, however: we really only need an instance of Functorlists, while it applyAll'enters and immediately extracts from the instance Applicative.
source
share