Remove type synonym in instance declaration of a contravariant functor

前端 未结 0 1238
有刺的猬
有刺的猬 2021-01-06 03:52

If I define:

class Contravariant f where
    contramap :: (b -> a) -> f a -> f b

type Op r a = (->) a r

And want to define:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题