[Haskell-cafe] Decoupling type classes (e.g. Applicative)?
Brandon S Allbery KF8NH
allbery at ece.cmu.edu
Tue Nov 2 21:57:41 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/29/10 09:35 , Dominique Devriese wrote:
> * Only introduce a dependency from type class A to type class B if all
> functions in type class B can be implemented in terms of the
> functions in type class A or if type class A is empty.
Er? Eq a => Ord a makes perfect sense in context but violates this law.
- --
brandon s. allbery [linux,solaris,freebsd,perl] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzQwZUACgkQIn7hlCsL25UXaACghD6I6JnoVZ3LTOsjy86ZWzmO
hq4An06sQPiC2/Xr40xlTAA97xdhACud
=nf0v
-----END PGP SIGNATURE-----
More information about the Haskell-Cafe
mailing list