How to efficiently instance Eq for a type class

前端 未结 0 1919
小鲜肉
小鲜肉 2020-11-27 03:45

I made the following class to convert between different temperature types:

data Temp = Kelvin Float | Celsius Float |Fahrenheit Float deriving Show

conversio         


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