
Hello, all, I'm following instructions to build hIDE at the page http://www.haskell.org/haskellwiki/HIDE I get "development" version b ycommand darcs get http://darcs.haskell.org/hIDE I succesfully built all dependant packages (Yi), and stuck on error when building HIDE itself: Building hide-plugin-0.1... /opt/ghc-6.6.1/bin/ghc -package-name hide-plugin-0.1 --make -hide-all-packages -i -idist/build/autogen -i. -isrc -odir dist/build -hidir dist/build -package base-2.1.1 -package ghc-6.6.1 -package parsec-2.0 -package FilePath-0.1.0 -DHAVE_LEADING_UNDERSCORE=False -DGHC_NUMERIC_VERSION="6.6.1" -Dlinux_TARGET_OS -Dlinux_HOST_OS -DGHC_LIBDIR="/opt/ghc-6.6.1/lib/ghc-6.6.1" -fglasgow-exts Hide.Plugin.Types Hide.Plugin.Parser Hide.Plugin.Printer Hide.Plugin.Loader Hide.Plugin.LoaderMidLevel Hide.Plugin.TypeCheck [5 of 6] Compiling Hide.Plugin.LoaderMidLevel ( src/Hide/Plugin/LoaderMidLevel.hs, dist/build/Hide/Plugin/LoaderMidLevel.o ) src/Hide/Plugin/LoaderMidLevel.hs:126:26: Not in scope: `moduleFS' I don't know how to find mentioned `moduleFS' Please advise me how should I deal with this error TIA, Vadim.

src/Hide/Plugin/LoaderMidLevel.hs:126:26: Not in scope: `moduleFS'
hIDE uses low-level GHC APIs to do some of its tricks. Unfortunately, GHC APIs change faster than hIDE, so the last version of hIDE is not compatible with GHC 6.6. As far as I know, in GHC 6.6 moduleFS has been renamed moduleNameFS. You can try to replace "moduleFS" with "moduleNameFS" on line 126 in src/Hide/Plugin/LoaderMidLevel.hs, and try to recompile. Tell me if you manage to compile it with this fix, hIDE authors could be interested. Salvatore

Salvatore Insalaco wrote:
src/Hide/Plugin/LoaderMidLevel.hs:126:26: Not in scope: `moduleFS'
hIDE uses low-level GHC APIs to do some of its tricks. Unfortunately, GHC APIs change faster than hIDE, so the last version of hIDE is not compatible with GHC 6.6.
As far as I know, in GHC 6.6 moduleFS has been renamed moduleNameFS. You can try to replace "moduleFS" with "moduleNameFS" on line 126 in src/Hide/Plugin/LoaderMidLevel.hs, and try to recompile.
thanks for the help. I still get errors, though: [5 of 6] Compiling Hide.Plugin.LoaderMidLevel ( src/Hide/Plugin/LoaderMidLevel.hs, dist/build/Hide/Plugin/LoaderMidLevel.o ) src/Hide/Plugin/LoaderMidLevel.hs:98:35: Couldn't match expected type `SrcSpan' against inferred type `UnlinkedBCO' In the second argument of `linkExpr', namely `unlinked' In a 'do' expression: hvalue <- linkExpr hscEnv unlinked In the expression: do name <- fmap expectOneName (parseName session symbol) Just tything <- lookupName session name let globalId = getGlobalId tything hscEnv <- sessionHscEnv session unlinked <- coreExprToBCOs (hsc_dflags hscEnv) (Var globalId) hvalue <- linkExpr hscEnv unlinked return (hvalue, idType globalId) src/Hide/Plugin/LoaderMidLevel.hs:126:40: Couldn't match expected type `ModuleName' against inferred type `Module' In the first argument of `moduleNameFS', namely `(nameModule n)' In the first argument of `zEncodeFS', namely `(moduleNameFS (nameModule n))' In the first argument of `unpackFS', namely `(zEncodeFS (moduleNameFS (nameModule n)))' ******************** setup build failed for packages/hidePlugin Thanks once again! Vadim.
participants (2)
-
Salvatore Insalaco
-
Vadim