packages feed

tilia-0.2.0.0: corpora/vendored/cpp/separator/equals-sign-ending-each-branch-of-guards.hs

{-# LANGUAGE CPP #-}

module Data.Set.Refined where

member :: Key -> Set -> Bool
member k s
#if MIN_VERSION_containers(0,6,0)
  | Just i <- lookupIndex k s =
#else
  | Just i <- findIndex k s =
#endif
      i >= 0
  | otherwise = False