[Haskell-cafe] Instance match surprise

Imants Cekusins imantc at gmail.com
Mon Feb 1 19:19:57 UTC 2016


Cześć Wojtek,

in
instance (Eq a, Eq q, Typeable a, Typeable q, AtmAcct a, Against q) =>
    Match a q where

ANY is q
because
instance Against ANY

A130 is a
because of
instance AtmAcct A130



in
instance (AtmAcct a) =>
    Match a ANY where
    match _ _ = True

ANY is specified

A130 is a
because of
instance AtmAcct A130

;)


More information about the Haskell-Cafe mailing list