How do I write, “if typeclass a, then a is also an instance of b by this definition.”

后端 未结 6 943
故里飘歌
故里飘歌 2020-11-29 04:36

I have a typeclass MyClass, and there is a function in it which produces a String. I want to use this to imply an instance of Show, s

6条回答
  •  悲&欢浪女
    2020-11-29 04:48

    You may find some interesting answers in a related SO question: Linking/Combining Type Classes in Haskell

提交回复
热议问题