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:
heap package name: heap-1.0.3
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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -