Old/sampou.org/oskimura

oskimura


[あとでかく] 素人です。よろしくお願いします。

Control.Monad.Transをインポートしたソースをコンパイルしようとしたら次のようなエラーがでた

    Could not find module `Control.Monad.Trans':
      it was found in multiple packages: transformers-0.1.4.0 mtl-1.1.0.2

なのでGoogle先生にお伺いを立てると次のページがヒットした

http://www.nabble.com/-GHC—3183:-unhelpful-wording-in-module-error-message-td23160690.html

 We might also want the message to suggest the flags `-hide-all-packages`,
  `-hide-package` and/or `-package` as part of the solution. 

とのことなので、

オプションに“-hide-package transformers”をつけることで解決した。


Last modified : 2009/04/29 03:38:04 JST