ajb | 1 Jan 2004 02:00
Favicon
Gravatar

Re: no continuations

G'day all.

Quoting Tomasz Zielonka <t.zielonka <at> students.mimuw.edu.pl>:

> OK. I think I may be getting it now. The point is that MonadCont takes
> care of passing the continuation, so you don't have to do it by hand. Is
> that right?

Precisely.

> Happy New Year,

And to you and yours.

Cheers,
Andrew Bromage
kyra | 1 Jan 2004 23:51
Picon

Working haskell/db+hugs set?

Trying to play with haskell/db, I've found myself being a little bit stuck.

The latest version of hugs haskell/db (as referenced from
http://www.haskell.org/haskellDB/download.html) works with seems to be of
May 1999. I cannot find any references to this version of hugs except
http://www.cs.uu.nl/~daan/download/hugs98may.exe which is broken.

Is it possible to find somewhere in the net all neccessary components (older
hugs, newer haskelldb, whatever...) to run any haskelldb example?

With best regards
and
Happy New Year!

Kyra
Bjorn Bringert | 2 Jan 2004 01:03
Picon
Picon

Re: Working haskell/db+hugs set?

kyra wrote:
> Trying to play with haskell/db, I've found myself being a little bit stuck.
> 
> The latest version of hugs haskell/db (as referenced from
> http://www.haskell.org/haskellDB/download.html) works with seems to be of
> May 1999. I cannot find any references to this version of hugs except
> http://www.cs.uu.nl/~daan/download/hugs98may.exe which is broken.
> 
> Is it possible to find somewhere in the net all neccessary components (older
> hugs, newer haskelldb, whatever...) to run any haskelldb example?

There is a project (of which I am a member) at Chalmers University of 
Technology that aims to update HaskellDB to work with current versions 
of GHC and Hugs, and on non-Windows platforms. We have an experimental 
version that works under Hugs Nov 2003 and GHC 6.2, using a patched 
version of the HSQL ODBC driver for database access. The code is still 
incomplete, but we are working on it. We will make an announcement when 
we feel that the library is in a usable state.

Happy New Year,

Bjorn Bringert
Daan Leijen | 2 Jan 2004 11:18
Picon
Picon
Favicon

Re: Working haskell/db+hugs set?

Hi Kyra,

> Trying to play with haskell/db, I've found myself being a little bit stuck.
>
> The latest version of hugs haskell/db (as referenced from
> http://www.haskell.org/haskellDB/download.html) works with seems to be of
> May 1999. I cannot find any references to this version of hugs except
> http://www.cs.uu.nl/~daan/download/hugs98may.exe which is broken.

Sorry for causing this inconvenience - maybe I should remove the webpage...
However, haskellDB is fairly old and was also the start of a framework for
typeful database  programming. It uses the TREX extension though that never
has been implemented in GHC and other Haskell systems. Furthermore, Haskell
wasn't as good as it is now with foreign libraries. Therefore, I still provide
the old Hugs 1998 may version just to enable people to play with it.

As Bjorn said, the good news is that people at Chalmers try to update haskellDB for
use in current Haskell's -- probably using functional depencies with repeated
catesian products to emulate TREX-like functionality. Maybe they can provide
you with a prototype version?

All the best,
  Daan.

> Is it possible to find somewhere in the net all neccessary components (older
> hugs, newer haskelldb, whatever...) to run any haskelldb example?
>
> With best regards
> and
> Happy New Year!
(Continue reading)

kyra | 2 Jan 2004 11:55
Picon

Re: Working haskell/db+hugs set?

> Therefore, I still provide
> the old Hugs 1998 may version just to enable people to play with it.

Unfortunately, http://www.cs.uu.nl/~daan/download/hugs98may.exe is broken
(cut at 256k boundary?).

> As Bjorn said, the good news is that people at Chalmers try to update
haskellDB for
> use in current Haskell's -- probably using functional depencies with
repeated
> catesian products to emulate TREX-like functionality.

Yes, I'm itching to see it soon.

Regards,
Kyra
Wolfgang Jeltsch | 2 Jan 2004 12:23

Haddock and module properties

Hello,

the sources of the hierarchical libraries contain things like
    Portability : portable
in the module descriptions.  Some of these property descriptions make it into 
the HTML documentation, some not.

I'm looking for a documentation about these things.  Why doesn't the Haddock 
User Guide describe them?

Wolfgang
Sven Panne | 2 Jan 2004 12:33
Picon

Re: class ??? with Haddock

Wolfgang Jeltsch wrote:
> does Hugs understand C preprocessor macros?  If not, your approach would be 
> bad for me since I try to stay Hugs-compatible.

Well, Hugs itself doesn't understand CPP macros (neither does GHC), but you
can use Hugs' -F<cmd> flag to pipe the source files through <cmd> before
Hugs actually sees them. GHC has two related options, -pgmP <cmd> and -cpp.

FYI: The hierarchical libraries are full of CPP stuff to handle the differences
between various platforms and/or Haskell system, but the Hugs distributions
usually come with preprocessed versions, so you don't necessarily need cpp.

Cheers,
    S.
Sven Panne | 2 Jan 2004 12:47
Picon

Re: Haddock and module properties

Wolfgang Jeltsch wrote:
> [...] I'm looking for a documentation about these things.

AFAIK there is no real documentation for this, but "Use the Source, Luke!"
(i.e. HaddockUtil.hs :-): The recognized labels are "Module", "Copyright",
"License", "Maintainer", "Stability", and "Portability". This fits nicely
with http://www.haskell.org/hierarchical-modules/libraries/reference-libraries.html#MODULE-HEADER

> Why doesn't the Haddock User Guide describe them?

Perhaps because SimonM was busy? :-) But I'm sure that even documentation
patches are gladly accepted...

Cheers,
    S.
Per Larsson | 2 Jan 2004 14:02
Picon

Haddock and man pages

Hi,

When you have a good understanding of a programming library  and only need to 
quickly refresh your memory regarding the type signature of a specific 
function, etc., I find man pages very convenient. Are there any plans of 
adding this  as an alternative output format in Haddock? If not, maybe I will 
try to write a patch when I find some spare time, but it would be encouraging 
to know  if this would interest anyone else but myself?

Cheers 
Per
Peter Simons | 2 Jan 2004 15:02
Picon
Gravatar

Re: Haddock and man pages

Per Larsson writes:

 > Are there any plans of adding this as an alternative
 > output format in Haddock?

It might be easiest to support Docbook output in Haddock and
to generate all other formats from that -- including "man"
a.k.a. nroff. Adapting the HTML output for SGML or XML is
probably less of an effort than writing a new driver from
the scratch.

In any case, I too would appreciate generated man files for
Haskell modules.

Peter

Gmane