Functors in Haskell: showing the value of an item of the type of the type parameter

前端 未结 0 2025
执念已碎
执念已碎 2020-12-03 13:27

GHC does not know how to show Type a.

data FunctorExample a = FunctorExample { val1 :: a, 
                                         val2 :: String
                    


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