Exporting stuff - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Asad Saeeduddin

Is there a simple way to export some stuff from modules you've imported in addition to whatever you've actually defined?

Asad Saeeduddin

without having to make all the exports explicit

Asad Saeeduddin

without having to make all the exports explicit

Asad Saeeduddin

got it, you can do:

module Foo (module Foo, Bar) where
Joel McCracken

I've seen like:

module Foo (bar, X) where

import qualified Baz as X
import qualified Buz as X
Joel McCracken

IIUC, this lets you reexport everything you imported as X combined together

Asad Saeeduddin

Yes, that works for that use case, but the problem is I wanted to export everything defined in Foo itself in addition to a couple things from the imports, without having to repeat the names of everything I defined in Foo explicitly in the export list