We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e4a1c commit 8c56f52Copy full SHA for 8c56f52
src/Language/Mapping.hs
@@ -150,7 +150,7 @@ conv'' ((ty2,ty):tl) = case cast ty :: Maybe ty of
150
Nothing -> Left $ "Not in target schema/typeside: " ++ show ty
151
152
elem' :: (Typeable t, Typeable a, Eq a) => t -> [a] -> Bool
153
-elem' x ys = maybe False (\x' -> any ((==) x') ys) (cast x)
+elem' x ys = maybe False (flip elem ys) (cast x)
154
155
member' :: (Typeable t, Typeable a, Eq a) => t -> Map a v -> Bool
156
member' k m = elem' k (Map.keys m)
0 commit comments