
Hi, I am currently in the process of porting some of the Haskell Refactorer (HaRe) over to ghc 6.6. Part of HaRe requires the API and until now I've been content with using th 6.5 API. However, since I've started the switch I've noticed some strange problems and the latest is I am getting the following error when trying to find the type of an expression: <interactive>:1:0: Can't find interface-file declaration for Main.main Probable cause: bug in .hi-boot file, or inconsistent .hi file Use -ddump-if-trace to get an idea of which file caused the error I have attached the code and would appreciate if someone could point me in the right direction. Basically I just want to find the type of a particular expression within a file. This used to work but now seems to fail. The code is compiled with: ghc --make -package ghc-6.6 -o main hasktags.hs and run with ./main Main.hs The file main can have anything in it really - I'm just using it to find a type of some function called main. Thanks for you help! Chris Brown.