j
k
j a
j l
2007/3/23, Daniil Elovkov :
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
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
Back to the thread
Back to the list