qualified re-export of Data.Set

Serge D. Mechveliani mechvel at botik.ru
Mon Jun 6 07:18:18 EDT 2005

Dear GHC developers,

Please, how to re-export (qualified) Data.Set, Data.Map ? 

In  ghc-6.2.2,  I used only

  {-# OPTIONS -fno-warn-duplicate-exports #-}
  module Reexport (module Data.Set, ...)
  import Data.Set
  module Main
  import Reexport 

For  ghc-6.4,  I need qualified import of Data.Set, Data.Map 
and need to re-export it. I am trying

module Reexport (module Set, f, g)
import qualified Data.Set as Set

f :: Bool
f = True

g :: Set.Set Bool
g = Set.singleton f
module Main 
import Reexport

main = putStr $ shows v "\n"   where  v = Set.singleton f   -- g 

Now,  v = g                  works.  
And   v = Set.singleton f  
        Main.hs:3:40: Not in scope: `Set.singleton'

I wonder, how the needed thing can be arranged.

With kind regards,

Serge Mechveliani
mechvel at botik.ru

More information about the Glasgow-haskell-users mailing list