[Haskell] type class instance selection & search