Type equality constraints and polymorphism

后端 未结 0 601
情书的邮戳
情书的邮戳 2021-01-02 00:13

What are the exact semantics of equality constraints? Are these two types exactly equivalent?

f :: Int -> IO [T]
g :: (a ~ T) => Int -> IO [a]


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