ghci Problem

Judah Jacobson judah.jacobson at
Mon May 26 13:53:33 EDT 2008

On Mon, May 26, 2008 at 4:54 AM, Dominic Steinitz
<dominic.steinitz at> wrote:
> Dominic Steinitz wrote:
>> Dominic Steinitz wrote:
>>>> Ok I can see in config.log that I don't have editline. That sounds very
>>>> suspicious. Mind you I'm not sure where to get it from for opensuse.
>>>> I'll have a hunt around.
>> Preprocessing library editline-0.2...
>> In file included from Editline.hsc:52:
>> include/HsEditline.h:11: error: conflicting types for 'el_get'
>> /usr/include/histedit.h:112: error: previous declaration of 'el_get' was here
>> compiling dist/build/System/Console/Editline_hsc_make.c failed
>> command was: gcc -c -D__GLASGOW_HASKELL__=609 -I/home/dom/ghc/includes -I/home/dom/ghc/gmp/gmpbuild -D__GLASGOW_HASKELL__=609 -Iinclude dist/build/System/Console/Editline_hsc_make.c -o dist/build/System/Console/Editline_hsc_make.o
> Commenting out this line seems to make things compile.
>> /* extern int el_get(EditLine *e, int op, void *result); */
> Finally ghci works. I think I should get points for persistence.

Points definitely awarded!  Thank you for tracking down the cause of
your problem.  The issue was that we weren't handling the el_get
function portably enough.  I've uploaded a fix to the darcs repo at ; I'll submit it for inclusion in the
main repository at as well.


More information about the Glasgow-haskell-users mailing list