snowleopard / selective

Selective Applicative Functors: Declare Your Effects Statically, Select Which to Execute Dynamically
MIT License
202 stars 21 forks source link

Derive more code #64

Closed snowleopard closed 1 year ago

snowleopard commented 1 year ago

Use DerivingVia to derive all ExceptT instances.

Also, make the Applicative instance of ComposeEither more interesting: start short-circuiting the computation to skip executing unnecessary effects via the Selective f constraint.