Problems with the debugger in leksah

Yuras Shumovich shumovichy at gmail.com
Fri Oct 16 00:59:54 EDT 2009


Hello!
I see, that "-tmp" is used twice in leksah sources, every time with exeName:

shum at linux-idc5:~/proj/haskell/leksah/leksah-head> grep -R -A5 -B5 tmp src
src/IDE/Metainfo/SourceCollector.hs-            let bis         =
allBuildInfo pkgDescr
src/IDE/Metainfo/SourceCollector.hs-            let buildPaths  =   if
hasExes pkgDescr
src/IDE/Metainfo/SourceCollector.hs-
then let exeName' = exeName (head (executables pkgDescr))
src/IDE/Metainfo/SourceCollector.hs-
  in  map (\p -> basePath </> p) $
src/IDE/Metainfo/SourceCollector.hs-
     ("dist" </> "build" </> exeName' </>
src/IDE/Metainfo/SourceCollector.hs:
                 exeName' ++ "-tmp" </> "") :
src/IDE/Metainfo/SourceCollector.hs-
     ("dist" </> "build" </> "autogen") : (".")
src/IDE/Metainfo/SourceCollector.hs-
             : (nub $ concatMap hsSourceDirs bis)
src/IDE/Metainfo/SourceCollector.hs-
else map (\p -> basePath </> p) $
src/IDE/Metainfo/SourceCollector.hs-
     ("dist" </> "build" </> "autogen") : (".")
src/IDE/Metainfo/SourceCollector.hs-
             : (nub $ concatMap hsSourceDirs bis)
--
src/IDE/Metainfo/InterfaceCollector.hs-    let modules         =   nub
$ exeModules pd ++ libModules pd
src/IDE/Metainfo/InterfaceCollector.hs-    let basePath        =
takeDirectory cCabalPath
src/IDE/Metainfo/InterfaceCollector.hs-    let buildPath       =   if hasExes pd
src/IDE/Metainfo/InterfaceCollector.hs-
then let exeName' = exeName (head (executables pd))
src/IDE/Metainfo/InterfaceCollector.hs-
     in "dist" </> "build" </> exeName' </>
src/IDE/Metainfo/InterfaceCollector.hs:
                    exeName' ++ "-tmp" </> ""
src/IDE/Metainfo/InterfaceCollector.hs-
else "dist" </> "build" </> ""
src/IDE/Metainfo/InterfaceCollector.hs-    dflags0             <-
getSessionDynFlags
src/IDE/Metainfo/InterfaceCollector.hs-    setSessionDynFlags
src/IDE/Metainfo/InterfaceCollector.hs-        dflags0
src/IDE/Metainfo/InterfaceCollector.hs-        {  topDir      =   basePath


And it looks like you have empty name for executable.

2009/10/11 edwin ancaer <edwin.ancaer at pandora.be>:
> Hello,
>
> I'm new to Haskell and Leksah. I started trying out Emacs and the
> Haskell bindings, but Emacs is too intimidating to me. I don't want to
> learn another set of key sequences to copy, delete and move around...
> Therefore, it seemed nice to have an editor/IDE.
>
> After some problems with libraries, Leksah is running fine now. But I
> seem to have an issue with the debugger: when I start it from Leksah, I
> get the following message in the log:
>
> :set prompt 3KM2KWR7LZZbHdXfHUOA5YBBsJVYoCQnKX
> ghc: unrecognised flags: -tmp -tmp -tmp -tmp -tmp
> GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
> Usage: For basic information, try the `--help' option.
>
> It seems to me I have to define some flags to pass to the compile, but I
> can't find where.
>
> Could anyone give me a hint?
>
> Kind regards,
>
>
>
>
> _______________________________________________
> Leksah mailing list
> Leksah at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/leksah
>



More information about the Leksah mailing list