haskell - How do you import Data.Heap? -
sorry such dumb question. i'm trying import data.heap, error message:
> import data.heap <no location info>: error: not find module ‘data.heap’ perhaps meant data.map (from containers-0.5.7.1@containers-0.5.7.1) haven't had trouble other imports.
thanks.
as described in comments, need install package contains module data.heap. (see this related question on difference between packages , modules in haskell)
on hackage page, in upper left-hand corner see name , version of package looking at:

if using stack, add heap build-depends section of project.cabal file, , rebuild. if using cabal, run cabal install heap recent version of package installed on system.
Comments
Post a Comment