Functional Metapost revival

2001-11-24 Thread Ferenc Wagner
You can find a version of Functional Metapost, which works with current (2001 February) Hugs, on the following page: http://afavant.elte.hu/~wferi/funcmp/ This version is able to produce all the illustrations in the enclosed Tutorial on my machine. Good luck, waiting for your comm

Re: Importing in ghci

2001-12-28 Thread Ferenc Wagner
"Konst Sushenko" <[EMAIL PROTECTED]> writes: > I just started using GHCI and I am having trouble > importing modules except for these in the "imports/std" > directory. [...] > 'ghc-pkg -l' reports that the module that I import is > indeed in an installed package, and as far as I understand > as l

ANN: Functional Metapost 1.2

2002-05-27 Thread Ferenc Wagner
Dear Haskell Community, version 1.2 of Functional Metapost is now available at http://afavant.elte.hu/~wferi/funcmp/ News: * This version includes English translations of the most important parts of the documentation! Thanks to Meik Hellmund, who contributed the translations. * 8-bi

Re: ANN: Functional Metapost 1.2

2002-05-27 Thread Ferenc Wagner
Dylan Thurston <[EMAIL PROTECTED]> writes: > Great work! One documentation bug: > >> Now it is time to discuss units. \MP\ uses as basic unit >> PostScript points which correspond to $1/72$ inch. We use >> them in \FMP, too. |hspace 8| defines a horizontal >> distance of $1/9$ inch or approxima

Re: ANN: Functional Metapost 1.2

2002-05-28 Thread Ferenc Wagner
Jorge Adriano <[EMAIL PROTECTED]> writes: > By the way, the link in: "The latest and greatest version > with documentation included: FuncMP-1.2.tgz (1.6 MB)." > points to version 1.1 instead of 1.2. Oops. Fixed. Thanks. Sorry. Feri.

GreenCard: list marshalling

2002-06-02 Thread Ferenc Wagner
Hi, I'd like to call LaPack routines from Haskell. Having read the GreenCard documentation it's still not obvious to me how I could marshall a list of numbers to C. Surely it's possible to create a ForeignObj, then fill it in element-by- element. But isn't there a more straightf

Re: GreenCard: list marshalling

2002-06-03 Thread Ferenc Wagner
Hal Daume III <[EMAIL PROTECTED]> writes: > Well, you could just use Ptr Double to mimick c arrays and > define conversion functions. I'm currently porting BLAS > and LAPACK to Haskell and this is what I do. Great! Can you show me what you have done so far? It is urgent for me, but I need one

Re: GreenCard: list marshalling

2002-06-03 Thread Ferenc Wagner
Alastair Reid <[EMAIL PROTECTED]> writes: > Here's some code from the Xlib interface: hslibs/xlib/Xlib.gc > (This code is part of the HGL (http://haskell.org/graphics).) [...] > Hope this helps, It helped much. Thanks for the comments, especially. Now I'm going to check whether the garbage c

GreenCard --target=ffi

2002-06-07 Thread Ferenc Wagner
The GreenCard manual promotes use of the FFI target (`You're encouraged to use the ffi target, since the Haskell output it generates can be used with all Haskell systems that support the common FFI (as of June 2001, all of them).'), but doesn't give any examples for using it. In the distribution

Re: GreenCard --target=ffi

2002-06-08 Thread Ferenc Wagner
Alastair Reid <[EMAIL PROTECTED]> writes: > At the moment, Hugs' ffi doesn't work with GreenCard Thanks for the input. It's not a big problem, since GC has native Hugs target. But the GC docs should be corrected then. (CCd to sof at galois.com) > and isn't compatible with GHC and NHC. I'm t

Re: Haskell 98: Behaviour of hClose

2002-09-18 Thread Ferenc Wagner
Ross Paterson <[EMAIL PROTECTED]> writes: > So I favour deletion of the offending sentence, leaving > this as an environment-dependency. I second that. I came to Haskell after many other programming languages, and was VERY surprised by echo behaviour. I vote for consistency with long-standing

Re: Haskell 98: Behaviour of hClose

2002-09-18 Thread Ferenc Wagner
"Simon Peyton-Jones" <[EMAIL PROTECTED]> writes: > If that's the consensus I'll happily leave echoing > behaviour unspecified. Remember, that means that a > conforming implementation can do whatever it pleases, and > hence it's impossible to write a portable interactive > Haskell program. Is tha

Re: Rational sequence

2002-10-24 Thread Ferenc Wagner
"Simon Peyton-Jones" <[EMAIL PROTECTED]> writes: > So I propose to modify the instance decl for Ratio by > adding explicit defns for succ/pred just like those in > Float/Double. I bet you guessed: once at it, what about removing those unintuitive 1/2-s, like: numericEnumFromTo n m = takeWhile (<

Re: Rational sequence

2002-10-24 Thread Ferenc Wagner
Dean Herington <[EMAIL PROTECTED]> writes: > It's inconsistent to remove the "+1/2" for > numericEnumFromTo but to leave the "+(n'-n)" for > numericEnumFromThenTo. I think you probably mean to > remove both (actually, all three). You are right, what I meant is numericEnumFromTo n m = takeWhile

Re: storing to a file

2002-11-14 Thread Ferenc Wagner
Johan Steunenberg <[EMAIL PROTECTED]> writes: > how to store a Double, or any non-char, to a file. I can give you a general advice: store it in ASCII format via show, unless you have *VERY* strong reasons against it. Yes, it results in bigger files (but you can compress them), and slower (what co

Re: int to float problem

2003-03-01 Thread Ferenc Wagner
"Mike T. Machenry" <[EMAIL PROTECTED]> writes: > I recently desided I wanted a bunch function to return > float instead of Int. [...] I found fromInteger but it > didn't seem to work on the return value of the cardinality > function for instance. Try fromIntegral, which works for Int and Integer,

Re: Looking for Libraries

2003-03-20 Thread Ferenc Wagner
Matthew Donadio <[EMAIL PROTECTED]> writes: > Is there a high level Haskell graphics library that would > give functionality similar to gnuplot? Why not simply USE gnuplot? Or plotutils? They have simple textual interfaces, do good work, and are fairly standard tools (on a Unix system, at least

Re: Looking for Libraries

2003-03-20 Thread Ferenc Wagner
Matthew Donadio <[EMAIL PROTECTED]> writes: > I would like to be able to have plotting capabilities > directly from a Haskell program rather than using a > spawned process Plotutils' functionality is included in a library. You can easily write an FFI wrapper for that. But I agree that a native

Re: Enum, Bounded, and Arithmetic Sequences

2003-06-25 Thread Ferenc Wagner
Johannes Waldmann <[EMAIL PROTECTED]> writes: >> x :: Foo <- [ .. ] > > A related point: the Haskell definition states that For any type that is an instance of class Bounded as well as Enum, the following should hold: > >> enumFrom and enumFromThen should be defined with an implicit bound, thus:

Re: Haskell for non-Haskell's sake

2003-08-30 Thread Ferenc Wagner
Hello, 1 I wrote Haskell programs to compute matrix elements of operators (in physics). 2 I use Haskell for generating figures (Functional Metapost). 3 For generating HTML summaries out of some data. 4 For common text processing as an advanced sed. Actually, I do not use Haskell for Haskell at

Re: Hugs98 November 2003 Debian Packages

2003-11-27 Thread Ferenc Wagner
Isaac Jones <[EMAIL PROTECTED]> writes: > Let me know if anyone is interested in Woody (stable) backports. Yes, I am. I could probably make them myself, but if you are willing to do so, I will let my 200 MHz machine do something else... :) Best wishes and big thanks anyway, Feri. __

Re: Hugs98 November 2003 Debian Packages

2003-12-02 Thread Ferenc Wagner
Isaac Jones <[EMAIL PROTECTED]> writes: > Woody backports are now available at the HE debian repository. Thanks, installed, enjoying! :) Feri. ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: ANNOUNCE: GHC version 6.2

2003-12-24 Thread Ferenc Wagner
Ian Lynagh <[EMAIL PROTECTED]> writes: >> >> The (Interactive) Glasgow Haskell Compiler -- version 6.2 >> > > And, for Christmas, we at Debian bring you sackful of de

Re: getting the path to the executing program

2004-01-08 Thread Ferenc Wagner
Hal Daume III <[EMAIL PROTECTED]> writes: > True. Replace "the" with "a" and "?" with ", if it exists?". > > On Thu, 8 Jan 2004, Lennart Augustsson wrote: > >> Hal Daume III wrote: >> >>> is there a function, related to getProgName, which >>> returns the (absolute) path to the current program? >>

[Haskell] Re: Weaving the Web with Haskell

2004-01-28 Thread Ferenc Wagner
Graham Klyne <[EMAIL PROTECTED]> writes: > I have been trying to use the HXML toolbox, because I > understand it's the only XML parser for Haskell that > supports XML namespaces. Unfortunately, it seems to be > rather dependent on older versions of GHC (unless I'm > missing something), which is m

Re: [Haskell] Re: Compiling HXML toolbox under Hugs/Windows

2004-01-29 Thread Ferenc Wagner
Graham Klyne <[EMAIL PROTECTED]> writes: > Well, further to my previous response, it appears that > there's a problem with GHC as well... The XmlInput module > imports a module called MD5, and uses a maethod 'digest' > from that module. I cannot find a copy of that module > either in the HXML to

[Haskell] Re: Network.CGI: ?

2004-11-30 Thread Ferenc Wagner
Johannes Waldmann <[EMAIL PROTECTED]> writes: > The environment then contains > > , ( "QUERY_STRING", "" ), ( "CONTENT_LENGTH", "1590" ) > , ( "CONTENT_TYPE" >, "multipart/form-data; > boundary=---1409895718904..." >) > > Am I doing something wrong, HTML-wise (is it

[Haskell] Re: Newbie : How come that cyclic recursive lists are efficient ?

2005-02-10 Thread Ferenc Wagner
Francis Girard <[EMAIL PROTECTED]> writes: > But I can't help thinking that the distinction between "being" a list of > integers and "being" a function that "returns" a list of integers (without > arguments) is not always clear in FP ... since there is not really such a > thing as returning a v

[Haskell] Re: Capturing output from System.system

2007-01-17 Thread Ferenc Wagner
"David House" <[EMAIL PROTECTED]> writes: > Sorry Mads for multiple copies. > > On 16/01/07, Mads Lindstrøm <[EMAIL PROTECTED]> wrote: > >> The function System.system (:: String -> IO ExitCode) makes the OS >> execute it first parameter as a command. It prints its output to >> standard output and