module Haskell module Base def wrong_type?(obj, klass) !(obj.is_a?(klass) || klass == Any) end end end