Data.Generics missing from Hat

I get the error hat-trans: /usr/local/include/hat/Data/Generics.hx: openFile: does not exist (No such file or directory) when compiling a file with "import Data.Generics". Is there a fix or a workaround? --ken

On 4 Aug 2005, at 13:57, Ken T Takusagawa wrote:
I get the error
hat-trans: /usr/local/include/hat/Data/Generics.hx: openFile: does not exist (No such file or directory)
when compiling a file with "import Data.Generics". Is there a fix or a workaround?
Data.Generics appears to not be translated in the make script, so you will need to do it yourself. Find the relevant source file, run hat- trans on it, compile it and put the various files in the relevant places. For testing purposes it's often easier to make a renamed version of the module and just put it locally in your project, but this might not be applicable in this case. As to why it isn't translated, I don't know, but I expect Malcolm had a good reason and will tell you later :) Bob

Data.Generics appears to not be translated
As to why it isn't translated, I don't know, but I expect Malcolm had a good reason and will tell you later :)
Data.Generics is a library used behind-the-scenes to implement a language extension. Apart from using quite a number of non-portable extensions itself (and thus difficult to translate), it would only really be useful to have this library available if hat-trans could also understand the new syntax of generics (polytypic code). Hat currently supports only a few minor extensions to Haskell'98, namely FFI, hierarchical namespace, MPTC, functional dependencies, and existentials. Regards, Malcolm
participants (3)
-
Ken T Takusagawa
-
Malcolm Wallace
-
Thomas Davie