Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-03-18 Thread Ferenc Wagner
Eugene Kirpichov ekirpic...@gmail.com writes: 2011/3/17 Ferenc Wagner wf...@niif.hu: Eugene Kirpichov ekirpic...@gmail.com writes: 2010/12/17 Henning Thielemann schlepp...@henning-thielemann.de: Eugene Kirpichov schrieb: I've published a large presentation about two Haskell-based tools

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-03-17 Thread Ferenc Wagner
Eugene Kirpichov ekirpic...@gmail.com writes: 2010/12/17 Henning Thielemann schlepp...@henning-thielemann.de: Eugene Kirpichov schrieb: I've published a large presentation about two Haskell-based tools of mine - tplot and splot. Their motto is visualize system behavior from logs with a

Re: [Haskell-cafe] HDF5 binding

2011-03-04 Thread Ferenc Wagner
James Andrew Cook mo...@deepbondi.net writes: What an interesting coincidence, that makes at least three of us. Apparently it's an idea whose time has come. Mine is also an incomplete low-level binding but is currently under semi-active development and I aim to make it cover the entire

[Haskell-cafe] HDF5 binding (was: why is ghci trying to load hsc file ??)

2011-03-02 Thread Ferenc Wagner
bri...@aracnet.com writes: I worked out a small hdf5 binding using cabal and bindings-DSL and sqlite3 as my example. Hi, I just wanted to add that I also started an HDF5 binding recently (using hsc2hs only). It does more than enough for me ATM, so I don't develop it actively, but if you want

Re: Debian stable not supported?

2008-09-22 Thread Ferenc Wagner
Yitzchak Gale [EMAIL PROTECTED] writes: Roman Cheplyaka wrote: I think I'll face with the similar problem in the nearest future, except I have far more old system. So I'll be very greatful if you provide the instructions and record your experience. (Looks like I may need to do this again

[Haskell-cafe] Re: [darcs-users] poll: how can we help you contribute to darcs?

2008-08-04 Thread Ferenc Wagner
wren ng thornton [EMAIL PROTECTED] writes: [Bug trackers are an excellent source of tasks for active developers to use so things don't get lost, but they're awful for new developers. For someone just joining the project it's rarely clear how important a task is, how hard, or how far

[Haskell-cafe] Re: problem in using wash

2008-03-04 Thread Ferenc Wagner
Vikrant [EMAIL PROTECTED] writes: I was trying to use wash to learn it. I am using ubuntu and I have ghc6.6.1 installed on my system. I have also installed the package libghc6-wash-dev but in my code when i write import WASH.CGI it gives me following error firstCGI.hs:5:7: Could

Re: Any Debian Etch packages for GHC 6.8.2?

2008-01-11 Thread Ferenc Wagner
Ian Lynagh [EMAIL PROTECTED] writes: On Tue, Jan 08, 2008 at 11:23:59AM +0100, Wagner Ferenc wrote: Ian uploaded 6.8.2 the day before yesterday... Maybe when he's finished with this work, a rebuild on Etch won't be too difficult. I do plan to do this at some point, but it's not imminent

Re: GHC 6.6.1 on Debian Etch?

2007-06-08 Thread Ferenc Wagner
Wagner Ferenc [EMAIL PROTECTED] writes: Stefan O'Rear [EMAIL PROTECTED] writes: On Tue, Jun 05, 2007 at 10:13:41PM +0200, Wagner Ferenc wrote: what's the best way to install GHC 6.6.1 on a Debian Etch system? Basically: are there installable packages available somewhere, or should I

Re: GHC 6.6.1 on Debian Etch?

2007-06-08 Thread Ferenc Wagner
In the end I created a new ghc6 package from the binary bundle by slight modifications and shameless theft from Ian Lynagh control file. It seems to work together with libreadline4 from Sarge. I'm willing to share it with anybody interested. -- Regards, Feri.

[Haskell-cafe] Re: Matlab/BLAS/LAPack

2007-04-03 Thread Ferenc Wagner
Alexander McPhail [EMAIL PROTECTED] writes: I am embarking on a project to bind to CBLAS and CLAPack. Do you know of http://www.cs.utah.edu/~hal/HBlas/index.html ? -- Feri. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Lazy IO and closing of file handles

2007-03-20 Thread Ferenc Wagner
Matthew Brecknell [EMAIL PROTECTED] writes: enumLines :: (a - String - Either a a) - a - FilePath - IO a enumLines iter accum filename = do h - openFile filename ReadMode flip fix accum $ \iterate accum - do try_line - try (hGetLine h) case try_line of Left e -

[Haskell-cafe] Re: IO in lists

2007-01-19 Thread Ferenc Wagner
Magnus Therning [EMAIL PROTECTED] writes: Thanks for all the excellent answers to my original question. Somehow it feels like I advanced and got one level closer to a black belt in Haskell due to this; I've now legitimately used a function from System.IO.Unsafe :-) I tried to document it

[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 standard error.

[Haskell-cafe] exception output

2006-12-19 Thread Ferenc Wagner
Hi, the following program main = readFile nonexistent = putStr is meant to produce an exception. When compiled with GHC 6.4, it outputs the *** Exception... string to stderr, which makes me happy. However, when run with runghc6 or runhugs, the message is sent to stdout, which makes me sad. Is

Re: Network.Socket endian problem?

2006-12-14 Thread Ferenc Wagner
Tomasz Zielonka [EMAIL PROTECTED] writes: On Wed, Dec 13, 2006 at 03:54:59PM -0600, Mark Hills wrote: It does expect the address to be in network byte order instead of host byte order, which is usually done using htons and htonl. This seems to do what you want (running SUSE 10.1 on an Intel

[Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Ferenc Wagner
Bulat Ziganshin [EMAIL PROTECTED] writes: of remaining, Ubuntu has widest support here while SuSe is favourite of my friend. one thing that i like in suse is that it uses the same RPMs as RedHat and RPMs is widely used for packaging software available via internet. Is Ubuntu supports RPMs

[Haskell-cafe] Re: ldap-haskell questions

2006-07-26 Thread Ferenc Wagner
Donn Cave [EMAIL PROTECTED] writes: Now that I look at what I did with ldap_set_option, I recall that s actually a little difficult to assign a type, since the third parameter is sometimes Int, Enum, TimeVal, String, and LDAP_OPT_* values overlap in a way that doesn't really say enum to me.

[Haskell-cafe] Re: ldap-haskell questions

2006-07-15 Thread Ferenc Wagner
Donn Cave [EMAIL PROTECTED] writes: On Thu, 13 Jul 2006, Ferenc Wagner wrote: ... Second, I find no trace of SSL/TLS routines. Is that really left out, or do I overlook something? OpenLDAP supports an option LDAP_OPT_X_TLS -- ldap_set_option Nothing LDAP_OPT_X_TLS

[Haskell-cafe] can't WashNGo (abstract tables)

2006-07-14 Thread Ferenc Wagner
Hi, trying to put WashNGo-2.9 to a nontrivial prototyping job gave some very compelling results so far, but also got me stumped on occasions. I'd be grateful for some guidance on the following points, concerning abstract tables mainly. * selectionDisplay: looks like displayFun (fourth arg)

[Haskell-cafe] ldap-haskell questions

2006-07-13 Thread Ferenc Wagner
Hi, to start off, I'm using ldap-haskell straight from its darcs repo under GHC-6.4.1, and it works. Just not quite like I want. First, I can't make a static compile: $ ghc --make prog.hs -o prog works without a warning, while $ ghc --make prog.hs -o prog -optl -static [...]

[Haskell-cafe] DBDirect trouble

2006-06-14 Thread Ferenc Wagner
Hi! Let me repeat my question from IRC here, too... I installed HaskellDB and all the necessary stuff (I hope) as local (not system-wide) packages: $ ghc-pkg list /usr/lib/ghc-6.4.1/package.conf: rts-1.0, base-1.0, haskell98-1.0, template-haskell-1.0, unix-1.0, Cabal-1.0, parsec-1.0,

[Haskell-cafe] LDIF output library

2006-05-30 Thread Ferenc Wagner
Hi, does anybody know of a library for writing LDIF files? If not, I may create one, and would be grateful for suggestions. Is it worth integrating with John Goerzen's LDAP binding, for example? -- Thanks, Feri. ___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Coin changing algorithm

2005-07-14 Thread Ferenc Wagner
Mark Carroll [EMAIL PROTECTED] writes: On Wed, 13 Jul 2005, Dinh Tien Tuan Anh wrote: (snip) eg: m = 75, k = 5 = [50, 20, 5] [50, 20, 1,2,2] (snip) Is this problem suitable for functional programming language ? Oh, what fun. I like this sort of thing. My quick

[Haskell-cafe] Re: CGI module almost useless

2005-06-03 Thread Ferenc Wagner
John Goerzen [EMAIL PROTECTED] writes: On 2005-06-02, Ferenc Wagner [EMAIL PROTECTED] wrote: Yes, I also mailed upstream and got no response. But I'm using WASH under GHC 6.4 without any problems. Automatic preprocessor invocation is not supported in 6.4, but that style of coding didn't

[Haskell-cafe] Re: CGI module almost useless

2005-06-02 Thread Ferenc Wagner
John Goerzen [EMAIL PROTECTED] writes: On Wed, Jun 01, 2005 at 10:54:54AM -0700, Jeremy Shaw wrote: I have done all of those things in WASH. [...] From what I can tell, there are two problems with WASH: 1) Everything must be done the WASH way 2) WASH is mostly broken with GHC 6.4 Let

Re: [ ghc-Bugs-1188785 ] panic! ... forkM Declaration for tables{v}

2005-05-04 Thread Ferenc Wagner
Simon Marlow [EMAIL PROTECTED] writes: Comment By: Ferenc Wágner (wferi) Just to make sure: the Could not find module `HTMLMonadBase'... is entirely reasonable (and my package.conf is crap), it's the ghc: panic! I found worrying. Yes, we plan to fix the panic and emit a more helpful

[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 value in

[Haskell-cafe] Re: I/O interface

2005-01-12 Thread Ferenc Wagner
Ben Rudiak-Gould [EMAIL PROTECTED] writes: Marcin 'Qrczak' Kowalczyk wrote: Ben Rudiak-Gould [EMAIL PROTECTED] writes: fileRead can be implemented in terms of OS primitives, Only if they already support reading from a fixed offset (like pread). I'm not sure if we can rely on something like

[Haskell-cafe] Re: Parse text difficulty

2004-12-09 Thread Ferenc Wagner
Douglas Bromley [EMAIL PROTECTED] writes: I've show(n) a particular data type and it shows up as: [([2,6],British),([1],Charles),([1,8],Clarke),([2,6],Council),([2],Edinburgh),([1],Education),([4],Increasingly)] What I want to do is format that nicely into a table. Which would give:

[Haskell] Re: Network.CGI: INPUT TYPE=file?

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 allowed to mix

[Haskell-cafe] Re: Global Variables and IO initializers

2004-11-09 Thread Ferenc Wagner
Henning Thielemann [EMAIL PROTECTED] writes: On Mon, 8 Nov 2004, Keean Schupke wrote: If you tell me the library you wish to use I may be able to suggest a better alternative. I'm using FFTW and PLPlot (but not with Haskell), both uses internal states and thus must be considered as ill

[Haskell-cafe] Re: Tutorial about low-level I/O in Haskell

2004-10-11 Thread Ferenc Wagner
Peter Simons [EMAIL PROTECTED] writes: http://cryp.to/blockio/docs/tutorial.html Pretty neat. Wouldn't it be a nice addition to the Tutorials section on the Haskell Bookshelf? Note: as I gather, GHC's lists are not doubly linked. -- Feri. ___

[Haskell-cafe] Re: Newbie questions

2004-07-01 Thread Ferenc Wagner
Crypt Master [EMAIL PROTECTED] writes: -- gaSolutionSpace :: [a] - [a] gaSolutionSpace x = x : gaSolutionSpace (evolvepopulation x) Stop deceiving yourself until it's too late. :) Why did you comment out the type annotation? -- Feri. ___

[Haskell-cafe] Re: Syntax for modifying nested product types

2004-04-23 Thread Ferenc Wagner
Graham Klyne [EMAIL PROTECTED] writes: At 18:18 22/04/04 -0400, Mark Carroll wrote: I have data objects where each component is a labelled field through which I access or modify it. Wading into the labelled field debate... I have found that using the labelled field update syntax can lead

Re: [Haskell-cafe] Dividing integers?

2004-03-18 Thread Ferenc Wagner
Matias Hernandez [EMAIL PROTECTED] writes: I mean, apparently / is not defined for integers but I don't know how to cast the result of the length function into a Double... Prelude (length [1,2]) / 3 Prelude fromIntegral (length [1,2])/3 0.667 Prelude 2 / 3 0.

ghci can't continue in a situation (HXml Toolbox)

2004-03-11 Thread Ferenc Wagner
Hello, Please have a look at the transcript below. GHC happily compiles the file with the Makefile, while GHCi chokes on it. I would be grateful for any insight into the problem. Feri. tba:~/haskell/xml/ $ cat xml2wiki.hs import System import XmlInput import XmlTree import

Re: ghci can't continue in a situation (HXml Toolbox)

2004-03-11 Thread Ferenc Wagner
Simon David Foster [EMAIL PROTECTED] writes: I had to remove POpen from HXT to make it work correctly with GHC 6.2. I think this because posix now includes popen and so it conflicts with the version in HXT. Try removing POpen.hs and doing it again, make sure you load package posix. Yep, it

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 toolbox

[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 making

Re: POpen, opening lots of processes

2004-01-12 Thread Ferenc Wagner
Tomasz Zielonka [EMAIL PROTECTED] writes: On Sun, Jan 11, 2004 at 10:22:09PM +0100, Ferenc Wagner wrote: It isn't suitable for exchanging bigger amounts of data between processes. May I ask why? Well, if you were collecting big amounts of data (like dozens of megabytes) from the child

Re: POpen, opening lots of processes

2004-01-11 Thread Ferenc Wagner
Tomasz Zielonka [EMAIL PROTECTED] writes: On Sat, Jan 10, 2004 at 04:50:28PM -0500, Mark Carroll wrote: Your code looks great, Thanks :) It isn't suitable for exchanging bigger amounts of data between processes. May I ask why? Feri. ___

Re: POpen, opening lots of processes

2004-01-09 Thread Ferenc Wagner
Tomasz Zielonka [EMAIL PROTECTED] writes: I had a similar problem, and finally I created my own solution that doesn't leave zombies and doesn't block when the launched process writes too much to stderr. Pretty neat, I've got an application idea for that code! Couldn't it be include in the

Re: POpen, opening lots of processes

2004-01-09 Thread Ferenc Wagner
Simon Marlow [EMAIL PROTECTED] writes: Tomasz Zielonka [EMAIL PROTECTED] writes: I had a similar problem, and finally I created my own solution that doesn't leave zombies and doesn't block when the launched process writes too much to stderr. Pretty neat, I've got an application idea for

Re: POpen, opening lots of processes

2004-01-08 Thread Ferenc Wagner
Hal Daume III [EMAIL PROTECTED] writes: On Thu, 8 Jan 2004, Glynn Clements wrote: What does the output from ps indicate? It lists all the processes as defunct: 19981 pts/5Z 0:00 [suffixtree defunct] 19982 pts/5Z 0:00 [suffixtree defunct] 19983 pts/5Z 0:00

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? Well, the absolute path

Re: GHC 6.2 breaks multiline string literals

2003-12-26 Thread Ferenc Wagner
Stefan Reich [EMAIL PROTECTED] writes: multilineLiteral = line1 line2 Use string gaps (see 2.6 in the Report): multilineLiteral = \ \ line1\n\ \ line2 -- Feri. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

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 debs!

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 debs!

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: 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: hSetBuffering stdin NoBuffering messes up terminal

2003-10-17 Thread Ferenc Wagner
Glynn Clements [EMAIL PROTECTED] writes: David Roundy wrote: On my terminal (aterm), calling hSetBuffering stdin NoBuffering within my program messes up the terminal settings somehow [...] Disabling buffering with hSetBuffering not only disables the user-space buffering (analogous to

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: 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: 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: 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, too.

Re: Graphics output from Haskell as eps

2003-02-17 Thread Ferenc Wagner
Hi Sarah, if Haskell - MetaPost - Postscript is good for you, have a look at FMP. It's somewhat old and doesn't cover the entire MetaPost language, but works for me. Feri. ___ Haskell-Cafe

Re: big rationals question

2003-02-16 Thread Ferenc Wagner
Damien R. Sullivan [EMAIL PROTECTED] writes: can I get Haskell to actually do that division itself? You can use the function fromRational :: Fractional a = Rational - a Feri. ___ Haskell-Cafe mailing list [EMAIL

Re: Beginner help

2003-02-11 Thread Ferenc Wagner
JJ [EMAIL PROTECTED] writes: From my perspective, the learning curve for Haskell seems to be near vertical. I also found it very steep. Keep on, read the Gentle Introduction, and start coding. Read the Haskell list, you'll understand more and more. Then read the Report... Good luck!

Re: Profiling trouble

2003-01-30 Thread Ferenc Wagner
Simon Marlow [EMAIL PROTECTED] writes: Both of these bugs were fixed in 5.04.2. Great. I'm afraid there's no way at the moment, but I'll look into adding a flag. The problem is that the longer the stacks get, the less room there is for the graph - hp2ps tends to squeeze the graph up to

Re: Profiling trouble

2003-01-28 Thread Ferenc Wagner
Hello, something interesting turned up again. Setting cut=8 in Show2.hs and running it with ./show +RTS -h -i0.01 gives show: fatal error: main thread has been GC'd It may be silly, since 0.01 1/50, but this error message isn't too helpful. Btw, +RTS -? says: -imsec

Profiling trouble

2003-01-24 Thread Ferenc Wagner
Hello, Please help me understanding GHC 5.02.2 profiling output! Here is the root of my program (Show.hs): \begin{code} showData:: BaseVector a = Params - Operator a - String showData params pot = unlines [Version 3.1,

Ambiguous defaults

2003-01-02 Thread Ferenc Wagner
Hello, What's the way to express the following: a compound object is generally made up of two components with identical type. For this common case I'd like to provide some default methods, which take the object apart, operate on the parts and put the results back together. In

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

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

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 (= m)

Rational sequence

2002-10-22 Thread Ferenc Wagner
With GHC-5.02.2, I do $ ghci Prelude :m Ratio Ratio [1%2..10%2] [1 % 2,3 % 2,5 % 2,7 % 2,9 % 2,11 % 2] The question is, why is there 11%2 at the end of the list? It's inconsistent with the (good) rules for Integer, since Ratio [1,3..10] [1,3,5,7,9] Is this intentional?

Re: Rational sequence

2002-10-22 Thread Ferenc Wagner
Simon Peyton-Jones [EMAIL PROTECTED] writes: The Report says that the Enum instance for Ratio uses the same rule as for Float/Double, Now I can see that the revised Report contains more about this than the one on haskell.org. But I still can't see the statement you cited above. Where should

Re: Graphics output

2002-10-08 Thread Ferenc Wagner
Gerhard Navratil [EMAIL PROTECTED] writes: I would like to write line graphics into a file (e.g. contour lines calculated by a Haskell function) and access the data from standard programs. For the output I need a Library. Why don't you output some ASCII numbers, and use another program

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 that you

Re: passing an option to gcc without a -

2002-07-25 Thread Ferenc Wagner
Hal Daume III [EMAIL PROTECTED] writes: I'm linking with a .a file built from C [...] so i tried ghc MyFile.hs -o myout -optctheafile.a but this doesn't appear to pass the paramter. If it's acceptable, you can try mv theafile.a libtheafile.a ghc MyFile.hs -o myout -L. -ltheafile Just a

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

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: 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

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

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.

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. *

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