Hello!

On Sun, Nov 21, 1999 at 09:07:47PM -0500, c_stanto wrote:

> I want to make a hash table using an array as the main part.  I want to
> do:
>       type Entry a = (String , a)
>         type HashTable a = array Int (Entry a)

> meaning that I want a hashTable whose entries are of type Entry and the
> indices are of type Int.  Can anyone point me in the right direction?

Type constructors are written with a leading uppercase letter, such as
Array, String, Entry, HashTable, Int. You did that right with just
one exception.

Perhaps an "import Array" will help too. See the Haskell 98 Library Report
for details.

Regards, Hannah.

Reply via email to