开发者

haskell -- not understanding why this associated type example needs more inference

开发者 https://www.devze.com 2023-04-04 16:49 出处:网络
Consider the following code, data MyBaseExpr α where ConstE :: Show α => α -> MyBaseExpr α class Monad

Consider the following code,

data MyBaseExpr α where
    ConstE :: Show α => α -> MyBaseExpr α

class Monad 
0

精彩评论

暂无评论...
验证码 换一张
取 消