Home > database >  What is the difference between Natural type defined in GHC.Natural and Numeric.Natural in haskell?
What is the difference between Natural type defined in GHC.Natural and Numeric.Natural in haskell?

Time:12-18

As per the title of the question - what is the difference between Natural type defined in GHC.Natural and Numeric.Natural modules in haskell?

Which one should be used?

CodePudding user response:

They are the same type. If you read the source of Numeric.Natural, you can see that it's a completely empty module except for re-exporting GHC's Natural type.

  • Related