First, I created a new workspace:
stack new xxxx
stack init
stack build
then
cd xxxapp
stack ghci
import Data.Map
I can import other modules like Data.Char
and Data.List
, but I can't import Data.Map
. GHCi told me:
Could not find module 'Data.Map'
It is a member of the hidden package 'containers-0.5.7.1@containers-0.5.7.1'.`
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…