Skip to content

Safe.Coerce

Compare
Choose a tag to compare
@fehrenbach fehrenbach released this 20 Mar 10:05
· 11 commits to master since this release

Adds role declaration to allow coercing HashMap k v to Hashmap k w, if v is coercible to w.
Note that HashMap j v is not safely coercible to HashMap k v, because the Hashable instances on j and k might disagree.