<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I'm trying to create a hash table. Yeah, I know, don't use hash tables, but I need to create something I'm familiar with, not something I've never worked with before. What's wrong with this code?<br><br>Michael<br><br>====================<br><br>import Prelude hiding (lookup)<br>import Data.HashTable<br><br>data MyHashTable = HashTable String Int<br><br>dummy:: String -&gt; Int<br>dummy s = 7<br><br>ht = MyHashTable.new (==) dummy<br><br>====================<br><br>[michael@localhost ~]$ ghci hash1<br>GHCi, version 6.10.3: http://www.haskell.org/ghc/&nbsp; :? for help<br>Loading package ghc-prim ... linking ... done.<br>Loading package integer ... linking ... done.<br>Loading package base ... linking ... done.<br>[1 of 1] Compiling Main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( hash1.hs, interpreted )<br><br>hash1.hs:9:5: Not in
 scope: `MyHashTable.new'<br>Failed, modules loaded: none.<br>Prelude&gt; <br><br></td></tr></table><br>