Why can't the compiler handle newtype for us in Haskell?

后端 未结 0 1554
你的背包
你的背包 2021-01-22 01:13

I understand that newtype erases the type constructor at compile time as an optimization, so that newtype Foo = Foo !Int results in just an Int

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