Skip to content

Commit 8c56f52

Browse files
committed
Replace any by elem. #82
1 parent b2e4a1c commit 8c56f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Mapping.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ conv'' ((ty2,ty):tl) = case cast ty :: Maybe ty of
150150
Nothing -> Left $ "Not in target schema/typeside: " ++ show ty
151151

152152
elem' :: (Typeable t, Typeable a, Eq a) => t -> [a] -> Bool
153-
elem' x ys = maybe False (\x' -> any ((==) x') ys) (cast x)
153+
elem' x ys = maybe False (flip elem ys) (cast x)
154154

155155
member' :: (Typeable t, Typeable a, Eq a) => t -> Map a v -> Bool
156156
member' k m = elem' k (Map.keys m)

0 commit comments

Comments
 (0)