関数型プログラミング言語Haskell Part16
■ このスレッドは過去ログ倉庫に格納されています
0118デフォルトの名無しさん
2011/10/14(金) 10:51:18.57自分の環境で確認していないんだけどHaskell Reportによれば、自分自身のモジュール名も参照してエクスポートリストに入れられる:
A module can name its own local definitions in its export list using its own name in the “module M”
syntax, because a local declaration brings into scope both a qualified and unqualified name (Section
5.5.1). For example:
module Mod1( module Mod1, module Mod2 ) where
import Mod2
import Mod3
Here module Mod1 exports all local definitions as well as those imported from Mod2 but not those
imported from Mod3.
http://www.cse.iitk.ac.in/users/karkare/courses/2010/cs653/Papers/haskell2010.pdf
の64ページ
■ このスレッドは過去ログ倉庫に格納されています