Motivation behind Phantom Types?

后端 未结 0 1143
不知归路
不知归路 2020-12-23 00:50

Don Stewart\'s Haskell in the Large\'s presentation mentioned Phantom Types:

data Ratio n = Ratio Double
1.234 :: Ratio D3

data Ask ccy = Ask Doubl         


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