Hi I've been playing a little bit with Frege and I just noticed in some examples that package
and module
are used interchangeably:
package MyModuleOne where
and sometimes:
module MyModuleTwo where
When importing from one or the other I don't see any difference in the behavior of my program. Is there something I should keep in mind when using package
or module
keywords ?
Yes. It used to start out with package
, but later I realized this was an obstacle when porting Haskell code which uses module
. Hence I added module
, and thus currently module
and package
are the same keyword, just spelled differently.
But the intention is, of course, to retire package
sooner or later. So my advice would be to use module
only.
(This reminds me that I probably have to update the lang spec with regard to this. Never mind.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With