serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 28 forks source link

fromIntegral #110

Closed h4ck3rm1k3 closed 6 years ago

h4ck3rm1k3 commented 6 years ago

Where is fromIntegral defined if not in prelude? http://hackage.haskell.org/package/base-4.10.1.0/docs/Prelude.html#v:fromIntegral

chshersh commented 6 years ago

If you navigate to fromIntegral sources you can see that this function is defined in GHC.Real module:

universum reexports almost everything from this module:

Does this clarify things for you?

h4ck3rm1k3 commented 6 years ago

Thank you!