1

I know that I can re-export modules like following:

module Test (module Test) where

import Prelude as Test
import A as Test

f x = x

But now I want to do re-export a partial imported module like

module Test (module Test) where

import Prelude (map, filter) as Test
import A as Test

f x = x

References:

luochen1990
  • 3,689
  • 1
  • 22
  • 37

1 Answers1

2

From Haskell wiki about Import, there is an example like this:

import Mod as Foo (x,y)

So, do it like this:

module Test (module Test) where

import Prelude as Test (map, filter)
import A as Test

f x = x
luochen1990
  • 3,689
  • 1
  • 22
  • 37