[Haskell-cafe] Re: Wikipedia on first-class object

Lennart Augustsson lennart at augustsson.net
Fri Dec 28 18:25:43 EST 2007


You are right, Portable Haskell Dynamic libraries do not exist because the
Haskell standard does not talk about them at all.
Portable C Dynamic libraries do not exist either.  Given POSIX they exist,
but if you happen upon a platform that only has a C compiler it won't have
them.

On Dec 28, 2007 7:08 PM, Cristian Baboi <cristian.baboi at gmail.com> wrote:

> On Fri, 28 Dec 2007 19:18:33 +0200, ChrisK <haskell at list.mightyreason.com>
> wrote:
>
> > This thread is obviously a source of much fun.  I will play too.
>
> Well, it starts with Wikipedia ... :-)
>
> >>
> >> What is the definition of an entry point in Haskell ?
>
> > "Haskell" does not have such a concept.  At all.  An implementation may
> > have
> > such a concept.
>
> Then a Haskell module know nothing about them.
>
> > Most people on this list define "Haskell" as any attempt at an
> > implementation of
> > one of the standards which define Haskell, most recently the Hakell 98
> > standard.
>
> > This can be nhc / yhc / ghc / hugs / winhugs / helium / jhc.  Some of
> > these
> > compile to native code, some compile to byte code for a virtual
> > machine.  If an
> > implementation can compile separately, then it might support dynamic
> > libraries.
> >  If so then a specific version of that compiler will define its own
> > implementation specific concept of an entry point.
>
> How can one make portable dynamic libraries then ?
>
> >> What is the semantics of those entry points ?
>
> > It depends.  For recent ghc versions, see its user manual:
> >
> http://haskell.org/ghc/docs/latest/html/users_guide/ffi-ghc.html#ffi-library
> > http://haskell.org/ghc/docs/latest/html/users_guide/win32-dlls.html
>
> The conclusion:
>
> Portable Haskell Dynamic libraries does not exists.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071229/c23ce6b9/attachment.htm


More information about the Haskell-Cafe mailing list