[Haskell] detecting existing instances