Haskell export current module with additional imported module

前端 未结 1 1921
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 03:05

Is it possible to write a module in Haskell, which re-exports a module in addition to exporting everything visible inside?

Lets consider following m

相关标签:
1条回答
  • 2020-12-13 04:02

    There is a simple solution, just export the module from the module:

    module Test
        ( module Test
        , module A
        ) where
    
    import Prelude()
    import A
    f x = x
    
    0 讨论(0)
提交回复
热议问题