Simon Marlow | 13 Sep 15:33 2002
Picon

ANNOUNCE: GHC version 5.04.1 released

   ==============================================================
    The (Interactive) Glasgow Haskell Compiler -- version 5.04.1
   ==============================================================

We are pleased to announce a new patchlevel release of the Glasgow
Haskell Compiler (GHC), version 5.04.1.  This is a bugfix-only
release.  For all the changes since 5.02.3, see the release notes:

   http://www.haskell.org/ghc/docs/latest/users_guide/release-5-04.html

How to get it
~~~~~~~~~~~~~
The easy way is to go to the WWW page, which should be self-explanatory:

        http://www.haskell.org/ghc/

We supply binary builds in the native package format for various
flavours of Linux and BSD, and in InstallShield form for Windows
folks.  Binary builds for other platforms are available as a .tar.gz
which can be installed wherever you want.  The source distribution is
also available from the same place.

Once you have the distribution, please follow the pointers in the
README file to find all of the documentation about this release.

Background
~~~~~~~~~~
Haskell is a standard lazy functional programming language; the
current language version is Haskell 98, agreed in December 1998.

(Continue reading)

Jon Fairbairn | 13 Sep 16:47 2002
X-Face
Picon
Picon

Re: ANNOUNCE: GHC version 5.04.1 released

On 2002-09-13 at 14:33BST "Simon Marlow" wrote:
> 
>    ==============================================================
>     The (Interactive) Glasgow Haskell Compiler -- version 5.04.1
>    ==============================================================
> 
> We are pleased to announce a new patchlevel release of the Glasgow
> Haskell Compiler (GHC), version 5.04.1.  This is a bugfix-only
> release.  For all the changes since 5.02.3, see the release notes:
> 
>    http://www.haskell.org/ghc/docs/latest/users_guide/release-5-04.html

ITYM <URL:
http://www.haskell.org/ghc/docs/latest/html/users_guide/release-5-04.html
>

--

-- 
Jón Fairbairn                                 Jon.Fairbairn <at> cl.cam.ac.uk
31 Chalmers Road                                         jf <at> cl.cam.ac.uk
Cambridge CB1 3SZ            +44 1223 570179 (after 14:00 only, please!)

Sigbjorn Finne | 16 Sep 18:20 2002

Re: ANNOUNCE: GHC version 5.04.1 released

A Win32 installer for ghc-5.04.1 is now available via
the GHC downloads page:

   http://haskell.org/ghc/download_ghc_504.html

--sigbjorn

Duncan Coutts | 1 Sep 19:46 2002
Picon

Dynamic linking again


So here's another idea. ghc's linker provides (via the ffi) a command
addDLL to load dynamic libraries. It uses dlopen on unix and LoadLibrary
on win32. 

Now, with dlopen if you pass it NULL rather than the filename of a
library it will give you back a handle to itself - the program that
called it. If you've linked your program with the right incantations
this gives you access to all the symbols in the main program.

So if this method works it would be the easiest way to get plugins
working. No need for me to modify ghc (I think)! There do seem to be some problems
with using -rdynamic with ghc however:
http://www.haskell.org/pipermail/gtkhs/2002-March/000253.html

As it is noted, it produces large executibles since all symbols get
exported. I've not yet been able to find a way to limit the symbols that
are exported.

I believe that a similar thing is avaliable on windows since glib's
GModule library claims to provide a portable interface for plugins on
Linux/Sun HP-UX and Windows.
http://developer.gnome.org/doc/API/glib/glib-dynamic-loading-of-modules.html

The rightlinker incantations in this case are -rdynamic or perhaps
-export-dynamic. So says the man page for ld, though there are some
better explanations elsewhere:

http://www.tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN93

(Continue reading)

Alastair Reid | 1 Sep 20:53 2002
Picon

Re: Dynamic linking again


> As it is noted, it produces large executibles since all symbols get
> exported. I've not yet been able to find a way to limit the symbols
> that are exported.

Useful GNU ld flags in this respect are:

  --whole-archive (for GHC files which have been 'split')

  --retain-symbols-file filename 

    filename contains a list of symbols to be exported

You can also use objcopy to hide symbols in a .o or .a file
before you apply ld -r 

--
Alastair Reid                 alastair <at> reid-consulting-uk.ltd.uk  
Reid Consulting (UK) Limited  http://www.reid-consulting-uk.ltd.uk/alastair/
Alfonso Meléndez | 2 Sep 00:08 2002
Picon
Picon

Problem with Library ObjectIO

Hello

my name is alfonso melendez, haskell user since 1998,
actually i am developing a project and i am working 
with the clean library objectio, my problem is:

the setControlLook function apparently does not work 
with CompoundControl i have tried to create a 
CompoundControl and I can not t put graphics text on
it using the setControlLook function. What I am trying
to d 
o is to create a scrolling box with CompoundControl
but it does not work.

I appreciate if you can help me

With this e -mail I send the code of my program, the
line that doesnt work is line  70

=====
Alfonso Meléndez
Escuela Colombiana de Ingeniería
Centro de Estudios Informáticos
tel:6762666 Ext:224

_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
Attachment (return.hs): application/x-unknown-content-type-jcreator.hs, 3697 bytes
(Continue reading)

Alfonso Meléndez | 2 Sep 00:09 2002
Picon
Picon

Problem with Library ObjectIO

Hello

my name is alfonso melendez, haskell user since 1998,
actually i am developing a project and i am working 
with the clean library objectio, my problem is:

the setControlLook function apparently does not work 
with CompoundControl i have tried to create a 
CompoundControl and I can not t put graphics text on
it using the setControlLook function. What I am trying
to d 
o is to create a scrolling box with CompoundControl
but it does not work.

I appreciate if you can help me

With this e -mail I send the code of my program, the
line that doesnt work is line  70

=====
Alfonso Meléndez
Escuela Colombiana de Ingeniería
Centro de Estudios Informáticos
tel:6762666 Ext:224

_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
(Continue reading)

Seth Kurtzberg | 2 Sep 08:40 2002

GHCi off by default?

Simon,

I noticed that when I build ghc-5.04 from source, the resulting executables 
have interactive mode disabled.

There is some code in mk/config.mk that appears backwards to me (although 
according to the accompanying comment it is not backwards):

#ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd 
netbsd openbsd)" ""
GhcWithInterpreter=YES
ifeq "$(HaveLibDL)" "YES"
SRC_HC_OPTS += -ldl
endif
#else
#GhcWithInterpreter=NO
#endif

This appears to turn GHCi off for mingw32, cygwin32, linux, solaris2, freebsd, 
netbsd, and openbsd.

Should that be #ifeq instead of #ifneq?  Or am in misinterpreting?

--

-- 
-----------------------------------
Seth Kurtzberg
M. I. S. Corp.
1-480-661-1849
Simon Marlow | 2 Sep 11:47 2002
Picon

RE: GHCi off by default?


> I noticed that when I build ghc-5.04 from source, the 
> resulting executables 
> have interactive mode disabled.
> 
> There is some code in mk/config.mk that appears backwards to 
> me (although 
> according to the accompanying comment it is not backwards):
> 
> #ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux 
> solaris2 freebsd 
> netbsd openbsd)" ""
> GhcWithInterpreter=YES
> ifeq "$(HaveLibDL)" "YES"
> SRC_HC_OPTS += -ldl
> endif
> #else
> #GhcWithInterpreter=NO
> #endif
> 
> This appears to turn GHCi off for mingw32, cygwin32, linux, 
> solaris2, freebsd, netbsd, and openbsd.

No, it's actually on for all these platforms.  However, you have to
bootstrap the compiler with itself before GHCi will be built (see
ghc/compiler/Makefile).

Cheers,
	Simon
(Continue reading)

Simon Peyton-Jones | 2 Sep 11:56 2002
Picon

RE: Dynamic linking again

| Now, with dlopen if you pass it NULL rather than the filename 
| of a library it will give you back a handle to itself - the 

Ah.  I didn't know that.

| So can anyone poke holes in my grand plan or should I give it a go?

Don't forget the issue that the 'main' program might not have
all the symbols you need.  And remember that you need to persuade
GHCi's linker to populate its symbol table with the symbols you 
how have.

Simon

Gmane