lspitzner / pqueue

Haskell priority queue package
Other
15 stars 13 forks source link

Use `coerce` instead of `fmap Down`/`fmap unDown` #130

Closed konsumlamm closed 1 year ago

konsumlamm commented 1 year ago

Closes #97.

The only coerce that actually changes the generated core significantly is the one in mapMaybe, but IMO using coerce makes it clearer that the conversion is free.