On Fri, Sep 19, 2008 at 7:02 PM, Andre Nathan [EMAIL PROTECTED] wrote:
On Fri, 2008-09-19 at 23:16 +0200, Daniel Fischer wrote:
Yes. What's IO gotta do with it?
I did it because of randomIO :(
(or what about StateT (Graph a b) (State StdGen) ?).
Now there's something I wouldn't have
brian wrote:
I want to use Parsec to parse NNTP data coming to me from a handle I
get from connectTo.
One unworkable approach I tried is to get a lazy String from the
handle with hGetContents.
It seems there is another approach, which is neither unsafe nor
imperative. It relies neither on
I dont remember where i saw it, but i think someone had an example of
a list whose type is the maximum element in the list. I've been
trying to reproduce that with GADT's.
data One = One
data Two = Two
data Three = Three
data MaxList t where
Elem1 :: MaxList One
Elem2 :: MaxList Two
On Fri, Sep 19, 2008 at 23:18, Don Stewart [EMAIL PROTECTED] wrote:
RafaelGCPP.Linux:
Hi all,
Is there any implementation of the rope data structure in Haskell?
I couldn't find any on Hackage, and I am intending to implement it.
There's no mature rope implementation. Can you
I am doing the ICFPC07 task right now, to learn Haskell and tried to use the
Sequence, but the final code is too damn slow (a few iterations per
minute!).
The DNA needs only 2 operations: head (or take) and concat.
I am thinking in using ropes for the DNA and sequences for all the rest
Rafael Gustavo da Cunha Pereira Pinto wrote:
I am doing the ICFPC07 task right now, to learn Haskell and tried to use the
Sequence, but the final code is too damn slow (a few iterations per
minute!).
The DNA needs only 2 operations: head (or take) and concat.
I am thinking in using ropes
Am Samstag, 20. September 2008 08:53 schrieb David Menendez:
On Fri, Sep 19, 2008 at 7:02 PM, Andre Nathan [EMAIL PROTECTED] wrote:
On Fri, 2008-09-19 at 23:16 +0200, Daniel Fischer wrote:
Yes. What's IO gotta do with it?
I did it because of randomIO :(
(or what about StateT (Graph a
Anatoly Yakovenko aeyakovenko at gmail.com writes:
I dont remember where i saw it, but i think someone had an example of
a list whose type is the maximum element in the list. I've been
trying to reproduce that with GADT's.
data One = One
data Two = Two
data Three = Three
data
---
Haskell Weekly News
http://sequence.complete.org/hwn/20080920
Issue 86 - September 20, 2008
---
Welcome to issue 86 of HWN, a newsletter covering
I am very pleased to announce that we have chosen Ben Lippmeier for the
OpenSPARC project. Congratulations Ben!
Ben will spend three months hacking on GHC to make it perform well on
the latest multi-core OpenSPARC chips.
I would also like to thank the other people who applied. The reviewers
On Sat, 2008-09-20 at 14:56 +0200, Daniel Fischer wrote:
modify' f = do
s - get
put $! f s
Or try Control.Monad.State.Strict.
Control.Monad.State.Strict did it for me, but the strict modify didn't.
I tried using modify' and also
randomDouble = do
g - get
let (r, g') =
Hi,
I finally got hugs to compile for the iPhone 2.x firmware (
pwnaged,obviously ).
It was a matter of using the gcc compiler version distributed by apple in
their iPhone SDK ( wich generates ARM code and suitable for cross-compiling
C code in a mac ), autoconf 'configure' script tweaking
Am Samstag, 20. September 2008 17:46 schrieb Andre Nathan:
On Sat, 2008-09-20 at 14:56 +0200, Daniel Fischer wrote:
modify' f = do
s - get
put $! f s
Or try Control.Monad.State.Strict.
Control.Monad.State.Strict did it for me, but the strict modify didn't.
I tried using
Hello Brandon and Haskell-cafe,
(Sorry for the delayed reply...)
These seem to be the relevant lines from configure of OpenGL package.
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h
On 2008 Sep 20, at 12:57, Donnie Jones wrote:
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/glu.h usability... yes
checking
data One = One
data Two = Two
data Three = Three
data MaxList t where
Elem1 :: MaxList One
Elem2 :: MaxList Two
ML1Cons1 :: MaxList One - MaxList One - MaxList One
ML1Cons2 :: MaxList One - MaxList Two - MaxList Two
ML2Cons1 :: MaxList Two - MaxList One - MaxList Two
Hello Brandon,
On Sat, Sep 20, 2008 at 1:02 PM, Brandon S. Allbery KF8NH
[EMAIL PROTECTED] wrote:
On 2008 Sep 20, at 12:57, Donnie Jones wrote:
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking OpenGL/gl.h usability... no
checking
Hello one and all,
Amid much rejoicing, my Haskell version of protocol-buffer is now
released (version 0.2.9).
What is this for? What does it do? Why?
Shorter answer: It generates Haskell data types that can be converted back
and forth to lazy ByteStrings that interoperate with Google's
On Sat, Sep 20, 2008 at 1:12 PM, Anatoly Yakovenko
[EMAIL PROTECTED] wrote:
Your problem in this example is that the t in MaxList t is universally
quantified when it needs to be existentially quantified. The following
definition encodes the existential quantification as a rank-2 type:
mlTail
Since this one's trivially parallizable, I took a crack at the
mandelbrot test case. It was fairly easy to thread it on a
per-line basis in Haskell without changing the original too much.
It might be more efficient to break the work into larger chunks,
but that would require some slightly more
I have been told that you could pretty much literally implement the
algorithms
from the problem specification with Seq from Data.Sequence and achieve
acceptable speed (IIRC ~ one minute for generating a whole picture).
Yes, it is straightforward to implement the algorithm when using
a) have you submitted it to the shootout.
no
b) is it faster
yes
c) can you put it on the parallel shootout wiki,
http://haskell.org/haskellwiki/Shootout/Parallel
http://haskell.org/haskellwiki/Shootout/Parallel/Mandelbrot
Tim Newsham
http://www.thenewsh.com/~newsham/
* Duncan Coutts [EMAIL PROTECTED] [2008-09-20 16:37:08+0100]
If you want to follow the progress we will be using the existing ghc
development mailing list:
http://www.haskell.org/mailman/listinfo/cvs-ghc
and a corner of the ghc development wiki:
newsham:
a) have you submitted it to the shootout.
no
b) is it faster
yes
c) can you put it on the parallel shootout wiki,
http://haskell.org/haskellwiki/Shootout/Parallel
http://haskell.org/haskellwiki/Shootout/Parallel/Mandelbrot
Nice, on quad core, the old entry,
$
On Sat, 2008-09-20 at 23:50 +0300, Roman Cheplyaka wrote:
* Duncan Coutts [EMAIL PROTECTED] [2008-09-20 16:37:08+0100]
If you want to follow the progress we will be using the existing ghc
development mailing list:
http://www.haskell.org/mailman/listinfo/cvs-ghc
and a corner of the ghc
On 2008.09.09 19:49:49 +0100, Neil Mitchell [EMAIL PROTECTED] scribbled 2.3K
characters:
Hi Gwern,
Sorry for not noticing this sooner, my haskell-cafe@ reading is
somewhat behind right now!
NP. I'm in no hurry; this TMR thing is an side project of mine, and I still
haven't figured out how
Hi,
I'm using Language.Haskell.* and would
like to know if it's possible to
pretty-print big strings like this:
into something like this:
\
\\
\\
\\
\\
\\
\
to respect the limit
Hey Martin,
On 19 sep 2008, at 04:14, Martin Huschenbett wrote:
I found a blog post concerning formlets [1] in the web. Since looks
very interesting I tried to compile the sample code with recent
versions of HAppS and formlets from hackage. But this didn't work as
the API of formlets has
Hello Clifford,
Thank you for the quick reply.
I was able to get a test C program that draws a triangle with GLUT to work:
gcc -lglut triangle.o -o triangle.exe
However, when building the Haskell GLUT 'Hello World' it uses, -lGLU to link
GLUT, but that does not work; however, from the config.log
Hello,
ghc -package GLUT -lglut Hello1.hs -o Hello1 --- works! :)
I'm not sure why I must specify -package GLUT and -lglut but that
prevents the linker errors. Also, shouldn't configure correctly figure out
how to link the GLUT libraries? Can someone explain?
Thank you.
__
Donnie
On Sat,
On 2008 Sep 20, at 21:47, Donnie Jones wrote:
However, when building the Haskell GLUT 'Hello World' it uses, -lGLU
to link GLUT, but that does not work; however, from the config.log
output configure seems to think that -lGL should work. Is there a
way I can change the build to use -lglut?
On 2008 Sep 20, at 22:10, Donnie Jones wrote:
ghc -package GLUT -lglut Hello1.hs -o Hello1 --- works! :)
I'm not sure why I must specify -package GLUT and -lglut but
that prevents the linker errors. Also, shouldn't configure
correctly figure out how to link the GLUT libraries? Can
Hello Brandon,
Maybe this is a bug in the configure script of Haskell OpenGL or GLUT
packages? Any suggestion from the package maintainers (or someone more
familiar with these packages)?
Thanks! :)
__
Donnie
On Sat, Sep 20, 2008 at 10:13 PM, Brandon S. Allbery KF8NH
[EMAIL PROTECTED] wrote:
33 matches
Mail list logo