music-suite / music-score

This repo has been merged into: https://github.com/music-suite/music-suite
http://music-suite.github.io
BSD 3-Clause "New" or "Revised" License
52 stars 10 forks source link

Export orphan Num instances from base-orphans #337

Closed RyanGlScott closed 9 years ago

RyanGlScott commented 9 years ago

Currently, music-score defines orphan Num instances for Sum and Product. However, there is at least one other package that exports these same orphan instances (Agda), possibly others. If these packages were used together on an old version of GHC, it could lead to instance conflicts.

To help mitigate this possibility, this pull request imports these instances from the base-orphans library (which exports backported instances introduced in later versions of base, including the aforementioned ones). This way, we can keep all of these orphan instances in one package so that Agda, music-score, etc. can coexist.