haskell - Importing a number of modules at once -
i have number of modules under same folder:
/src/web/mylib/types/entity1.hs /src/web/mylib/types/entity2.hs /src/web/mylib/types/entity3.hs ... most of them require importing same modules such data.time, uuid , others. instead of importing models each of modules under /src/web/mylib/types/, there way create 1 base module, say, /src/web/mylib/types/base.hs, import modules (data.time, uuid, ...) , import base entityx? i've tried , failed. maybe did wrong.
here's example, taken control.lens, achieves want: imports in base module , re-exports everything.
module control.lens ( module control.lens.at , module control.lens.cons , module control.lens.each -- ... ) import control.lens.at import control.lens.cons import control.lens.each -- ...
Comments
Post a Comment