[I'm not sure if this should be hugs-bugs or hugs-users - definitely a
borderline case.  Replies should probably come to me or to hugs-bugs.]

> I'm attempting to use green card generated code for a project
> (why don't mutable arrays work?) 

I wasn't aware they didn't.  In fact, I'm not even sure what you mean
- can you give some more details.

> and I can't get any information on where to put the generated .so
> file so that I can access the functions I have generated.

I can't remember if this is documented anywhere (it certainly should be).

1) GreenCard generates a .hs and a .c file which you compile/link to get
   a .so file.

2) Place both files in the same directory and put that directory on Hugs'
   path so that when you say "import Foo" or ":load Foo", Hugs will find
   the .hs file and, from that, know where the .so file is (i.e., in the
   same directory).

Putting them in the same directory is an easy way of (virtually)
eliminating version skew.  My mental model is that they are a single
_logical_ file which is split into two because of technical
restrictions in Unix and Win32.

There may be some obscure cases where NFS (or Samba?) prevents this
from working.  For example, it wouldn't work if Hugs were unable to
determine the full pathname of the .hs file.  

Hope this helps, 

Alastair Reid

Reply via email to