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
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
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
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
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
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
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
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
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
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.
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
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 -
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
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.
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
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
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
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.
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
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)
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
[...]
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,
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
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
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
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
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
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
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
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:
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
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
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.
___
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.
___
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
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.
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
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
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
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
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
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.
___
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
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
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
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
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]
Ian Lynagh [EMAIL PROTECTED] writes:
The (Interactive) Glasgow Haskell Compiler -- version 6.2
And, for Christmas, we at Debian bring you sackful of debs!
Ian Lynagh [EMAIL PROTECTED] writes:
The (Interactive) Glasgow Haskell Compiler -- version 6.2
And, for Christmas, we at Debian bring you sackful of debs!
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
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.
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
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
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:
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).
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
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.
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
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
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!
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
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
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,
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
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
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
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)
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?
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
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
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
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
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
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
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
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
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.
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.
*
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
79 matches
Mail list logo