Haskell supports importing a subset of items from a module.
import qualified Data.Stream (map) as D
would only import map
from Data.Stream
, and calls to this function would require D.
:
D.map odd [1..]
otherwise the compiler will try to use Prelude
's map
function.