Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Module export list: how to export imported module? [duplicate]

Tags:

haskell

I can re-export imported module like:

module My (
  module Another
, A
) where
import Another

But this form will export only Another and A. How to export anything (all!) and imported module without to enumerate all exporting symbols? Something like export without the list:

module My where
...

PS. The last form does not re-export importing modules. Is it possible at whole?

like image 417
RandomB Avatar asked Jan 23 '26 22:01

RandomB


1 Answers

module My (module My, module Another) where
import Another

Pretty sneaky, huh?

like image 124
Daniel Wagner Avatar answered Jan 25 '26 12:01

Daniel Wagner