Re: Yell

2002-01-12 Thread Ashley Yakeley

At 2002-01-12 10:22, Hal Daume III wrote:

>This seconds the yell.

In the mean time Hugs has some documentation:
http://www.cse.ogi.edu/PacSoft/projects/Hugs/pages/hugsman/exts.html#sect7.
4


-- 
Ashley Yakeley, Seattle WA


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: Yell

2002-01-12 Thread Hal Daume III

This seconds the yell.

--
Hal Daume III

 "Computer science is no more about computers| [EMAIL PROTECTED]
  than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume

On Fri, 11 Jan 2002, Ashley Yakeley wrote:

> This message constitutes a yell.
> 
> http://www.haskell.org/ghc/docs/latest/set/implicit-parameters.html
> 
> Thanks in advance...
> 
> 
> -- 
> Ashley Yakeley, Seattle WA
> 
> 
> ___
> Glasgow-haskell-users mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> 


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: FFI

2002-01-12 Thread Dylan Thurston

On Sat, Jan 12, 2002 at 01:24:54PM +1100, Manuel M. T. Chakravarty wrote:
> Mark Conway Wirt <[EMAIL PROTECTED]> wrote,
> 
> > I'm looking for opinions as to the best way to do a C (or C++)
> > foreign interface to GHC haskell code.
> > 
> > It looks like there are three options.
> 
> I think, there are five options:
> 
> * H/Direct (you mentioned that already)
> * GreenCard (ditto)
> * C->Haskell
>   http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
> * hsc2hs (comes with GHC)
> * Plain FFI

And what are the pros and cons of each?  Presumably you recommend
C->Haskell, since you wrote it; what makes it better?

(My situation: I want to interface to C code with several rather large
structures, so plain FFI is not very attractive.  I've started using
C->Haskell, but am curious about other people's experiences.)

--Dylan Thurston



msg02917/pgp0.pgp
Description: PGP signature


Re: Bug? Re: GHC version 5.02.2 is available - SuSE RPMs

2002-01-12 Thread Jorge Adriano


> > > module Main where
> > > main :: IO()
> > > main = do
> > >   putStr "n:"
> > >   n <- readLn :: IO(Int)
> > >   print n
> >
> > Used to work fine with ghc 5.00.2, that is, it would print "n:", then
> > wait for the input, and finaly print n.
> > With Ghc 5.02.2 it only prints "n:" after reading the n.

>
> It's actually expected behaviour with the current IO implementation -
> you have to explicitly flush stdout before reading from stdin (if stdout
> is buffered, that is).
>
> FWIW, I don't think this is the Right behaviour either.

Well it seems at least quite annoying, not to mention that lots of programs 
will 'break'. When was this behaviour changed? And why?

J.A.


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Re: Bug? Re: GHC version 5.02.2 is available - SuSE RPMs

2002-01-12 Thread Sigbjorn Finne


"Jorge Adriano" <[EMAIL PROTECTED]> writes:
>
 ...
> > module Main where
> > main :: IO()
> > main = do
> >   putStr "n:"
> >   n <- readLn :: IO(Int)
> >   print n
>
> Used to work fine with ghc 5.00.2, that is, it would print "n:", then wait
> for the input, and finaly print n.
> With Ghc 5.02.2 it only prints "n:" after reading the n.
>
> Unless I'm missing something here it seems like a bug to me.
> Haven't tried installing from the tarball yet.
>

It's actually expected behaviour with the current IO implementation -
you have to explicitly flush stdout before reading from stdin (if stdout
is buffered, that is).

FWIW, I don't think this is the Right behaviour either.

--sigbjorn



___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



Bug? Re: GHC version 5.02.2 is available - SuSE RPMs

2002-01-12 Thread Jorge Adriano


> Here are SuSE RPMs (built with SuSE 7.3 but I guess they also
> work with earlier versions):
>
>   http://www.informatik.uni-bonn.de/~ralf/ghc-5.02.2-1.i386.rpm
>   http://www.informatik.uni-bonn.de/~ralf/ghc-prof-5.02.2-1.i386.rpm

Just tried them out and something seems to be wrong... I'm running SuSE 7.3.
This simple program,

> module Main where
> main :: IO()
> main = do 
>   putStr "n:"
>   n <- readLn :: IO(Int)
>   print n

Used to work fine with ghc 5.00.2, that is, it would print "n:", then wait 
for the input, and finaly print n.
With Ghc 5.02.2 it only prints "n:" after reading the n.

Unless I'm missing something here it seems like a bug to me.
Haven't tried installing from the tarball yet.

J.A.

P.S.:
It's good to see that SuSE ghc rpms are beeing maintained, thanks!

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users