poset: Use IncoherentInstances to resolve overlaps.
commitef2e57811e9ca2fa38244aad567169f74882827c
authorNick Bowler <nbowler@draconx.ca>
Sat, 21 Nov 2009 03:20:16 +0000 (20 22:20 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 21 Nov 2009 03:20:16 +0000 (20 22:20 -0500)
treeeb747d9b64a4a72320b8cddc9ede825260a72572
parentb848f21b709d33acc5be16c69885278a70162524
poset: Use IncoherentInstances to resolve overlaps.

The Ord instances for Poset are causing major problems with overlapping.
Adding IncoherentInstances on all the other Poset instances seems to
work, at least for now.  It remains to be seen whether or not the
"Every Ord is a Poset" idea is actually worth the hassle, or whether
there's a better way to do this.

Creating our own Ord class inside the Poset module and defining our own
instances for it means we don't get to (easily) take advantage of the
very rich libraries built on top of Ord.
Data/Floating/Double.hs
Data/Floating/Instances.hs [new file with mode: 0644]
Data/Poset.hs