3
我想不同用途使用Prelude.map
和Data.Map.map
在我的代碼衝突,但Data.Map
一個合格的進口似乎並沒有幫助:Data.Map合格的進口與前奏
Prelude> import Data.Map as M
Prelude M> map
<interactive>:3:1:
Ambiguous occurrence ‘map’
It could refer to either ‘M.map’
imported from ‘Data.Map’
(and originally defined in ‘containers-0.5.0.0:Data.Map.Base’)
or ‘Prelude.map’
imported from ‘Prelude’ (and originally defined in ‘GHC.Base’)
(我還採取了錯誤消息的screenshot,which you can see here)
我想能夠分別使用map
和M.map
。我怎樣才能做到這一點?
你可能喜歡的[我的回答對明顯不相關的問題]開頭(http://stackoverflow.com/questions/8327032/write-this-scala - 矩陣乘法功能於哈斯克爾/ 8331995#8331995)。 –