2007/3/23, Daniil Elovkov <daniil.elovkov at googlemail.com>: > Ok, > btw, this works :) > > data Cnd c where > In :: (Eq (c a)) => c a -> [c a] -> Cnd c > > check :: (Eq (c a)) => Cnd c -> Bool Eq constraint isn't even needed here, obviously > check (x `In` items) = x `elem` items