Ah, my problem was that I was using the extension ".ghs" on my "Foo" file and it expected ".gc".
Thanks. -- Hal Daume III "Computer science is no more about computers | [EMAIL PROTECTED] than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume On Wed, 29 May 2002, Sigbjorn Finne wrote: > Something like: > > foo$ cat Foo.gc > module Foo where > import StdDIS > %dis foo x = char x > > foo$ cat Bar.gc > module Bar where > import StdDIS > import Foo > %fun f :: Foo -> IO () > > foo$ green-card -i/path/to/green-card/lib/ghc -tffi Bar.gc > foo$ > > hth > --sigbjorn > > ----- Original Message ----- > From: "Hal Daume III" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "GHC Users Mailing List" > <[EMAIL PROTECTED]> > Sent: Wednesday, May 29, 2002 16:41 > Subject: specifying common 'dis's in greencard > > > > Hi, > > > > I have three modules which all use the same (or some of the same) %dis > > directives; I'd like to pull these out into their own file (a module > > called "MyDIS" or something), but I can't figure out how to get green-card > > to look at those definitions (I've `import`ed it in the modules that need > > it and put it's directory in the search path with -i). Unfortunately, > > even so it complains that it doesn't know how to marshall my datatypes. > > > > Any suggestions? > > > > - Hal > > > > -- > > Hal Daume III > > > > "Computer science is no more about computers | [EMAIL PROTECTED] > > than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume > > > > _______________________________________________ > > Glasgow-haskell-users mailing list > > [EMAIL PROTECTED] > > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > _______________________________________________ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users