LoginSignup
4
3

More than 5 years have passed since last update.

エクスポートモジュールの楽な追加

Posted at

https://github.com/ekmett/lens/commit/63d43eaec84e06a8b74e6781fbcc60d93fb745a7 より。

http://hackage.haskell.org/packages/archive/lens/3.6/doc/html/src/Control-Lens.html こういうモジュールを作るとき、

module Foo (
  module Bar,
  module Baz,
  ...
  ) where

import Bar
import Baz
...

と書くところを、

module Foo (module Exports) where

import Bar as Exports
import Baz as Exports
...

にすれば、二重に名前を書く事を回避できる(ようだ)。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3