Haskell re-export module which only import a selected part of identifiers

Viewed 41
1 Answers

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
Related