#1715: seldom panic
+---
Reporter: [EMAIL PROTECTED] | Owner: chak
Type: bug | Status: new
Priority: normal | Milestone: 6.10
2007/11/20, Simon Marlow [EMAIL PROTECTED]:
Martin Guy wrote:
$ .../ghc6-6.6.1/testsuite/tests/ghc-regress$ make stage=2 fast
make-fast-stage=2.errs 21
Wrong exit code (expected 0 , actual 2 )
/tmp/ghc27396_0/ghc27396_0.hc:5:27:
error: TestStub_stub.h: No such file or directory
#1825: standalone deriving for typeable fails
---+
Reporter: jpbernardy | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone: 6.8.2
#1847: Oddity with :browse!
--+-
Reporter: simonmar | Owner: igloo
Type: merge | Status: new
Priority: normal| Milestone: 6.8.2
Component: GHCi |Version: 6.8.1
#1715: seldom panic
+---
Reporter: [EMAIL PROTECTED] | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone: 6.10
Christian Maeder wrote:
good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C
You (or someone else) should add it to
http://hackage.haskell.org/trac/ghc
I guess that this is related to
http://thread.gmane.org/gmane.comp.lang.haskell.cafe/31675
Regards,
apfelmus
#1909: code snippet in debugger documentation wrong
---+
Reporter: guest | Owner:
Type: bug| Status: new
Priority: normal | Milestone:
#1909: code snippet in debugger documentation wrong
---+
Reporter: guest | Owner: igloo
Type: merge | Status: new
Priority: normal | Milestone:
#629: IO library locking doesn't count readers
-+--
Reporter: simonmar | Owner: simonmar
Type: bug | Status: closed
Priority: lowest | Milestone: 6.8.3
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
+---
Reporter: int-e| Owner:
Type: bug | Status: new
Priority: normal | Milestone:
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
--+-
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal| Milestone:
#1911: -w doesn't turn off nullModuleExport
---+
Reporter: AndreaRossato | Owner:
Type: bug| Status: new
Priority: normal | Milestone:
Component: Compiler
#1910: Native Code gen miscompiles double2Int# / float2Int# on x86_32
--+-
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal| Milestone:
Hi,
registry sounds like overkill to me. If really an absolute hardcoded
path is needed, I would appreciate if it is stored only in a single
place (for ghc, ghci, ghc-pkg and package.conf).
Other tools have a relocate script, that only changes that location
after unpacking (or move).
Cheers
registry sounds like overkill to me. If really an absolute hardcoded
path is needed, I would appreciate if it is stored only in a single
place (for ghc, ghci, ghc-pkg and package.conf).
that was my point: how do you find that 'single place',
given the wide variety of versions, platforms,
Dear all,
Giving a try to GHC 6.8.1 under Windows, I stumble upon the following
issue (yes, I'm struggling with HDirect), which did not occur with the
6.6 version : the linking phase of my project fails with
$ C:/ghc/ghc-6.8.1/bin/ghc -o ihc.exe -fglasgow-exts -static -fvia-C
-Rghc-timing
Hello,
please consider the following program:
main = putChar 'A' main
I load this into GHCi, enter :step main, followed by :step and a second :step.
Although I would expect to get the As in the output step by step, GHCi now
hangs inside the infinite loop. Is this intentional? To me,
Greetings,
There are new version 0.82 and 0.93 of regex-posix. If you use regex-posix with
Data.ByteString then you should upgrade to obtain a fix for a crash error.
There are new version of regex-pcre available on hackage and the two darcs
repositories:
Fernand a écrit :
Dear all,
Giving a try to GHC 6.8.1 under Windows, I stumble upon the following
issue (yes, I'm struggling with HDirect), which did not occur with the
6.6 version : the linking phase of my project fails with
Actually, the issue appears with the following program :
module
Using GHC 6.8.1 on Windows XP, after having used ghc-pkg to expose '
directory-1.0.0.0', I am getting an error when I build haddock that says the
package is hidden. When I type ghc-pkg list, the package is not in
parenthesis. Typing ghc -v says that it is using the file from
As I understand it, Cabal hides all packages by default. If a package
is not in your dependencies, it won't be available to the build, no
matter the status in ghc-pkg.
(Incidentally, this had neat consequences in the past, since it means
that packages being hidden in ghc-pkg also does not make
1. just using : at the prompt caused a reload. Now you have to type :r.
2. reload now reloads all modules rather than just the modules that
changed (faster but not as fast as not reloading them at all).
-Alex-
___
Glasgow-haskell-users mailing list
.ehs stands for extended haskell and encapsulates the 90% case of people
just wanting -fglasgow-exts with a minimum of fuss.
Having a filetype seesm better than the alternatives of either adding
boilerplate language/options pragmas to the top of your source files or
putting them in a cabal
Hi Alex,
.ehs stands for extended haskell and encapsulates the 90% case of people
just wanting -fglasgow-exts with a minimum of fuss.
That goes against the general GHC direction of trying to wean people
off -fglasgow-exts and on to more specific language pragmas.
Thanks
Neil
On Tue, Nov 20, 2007 at 12:18:57PM -0800, Greg Fitzgerald wrote:
Using GHC 6.8.1 on Windows XP, after having used ghc-pkg to expose '
directory-1.0.0.0', I am getting an error when I build haddock that says the
package is hidden. When I type ghc-pkg list, the package is not in
parenthesis.
If you take away -fglasgow-exts, then you force me to have to look up
the exact name of each language extension I use every time I want to use
it. Since that is annoying and breaks flow, the simpler answer is just
to put a big honking language pragma at the top of all my source files
with
Am Dienstag, 20. November 2007 22:15 schrieb Alex Jacobson:
.ehs stands for extended haskell and encapsulates the 90% case of people
just wanting -fglasgow-exts with a minimum of fuss.
Having a filetype seesm better than the alternatives of either adding
boilerplate language/options pragmas
I'm fine with that as well. I'm just opposed to being force to look up
the precise names the compiler happens to use for each language
extension I happen to use. Having -fglasgow-exts turned on by default
also works.
-Alex-
Wolfgang Jeltsch wrote:
Am Dienstag, 20. November 2007 22:15
On Tue, 2007-11-20 at 13:25 -0800, Stefan O'Rear wrote:
(Would someone who is involved with the cabal web site PLEASE put this
up somewhere? FAQs do no good if they have to be typed by humans!)
What would you like the text to be and where would you like to see it?
Duncan
I'm very much in favor of listing the exact extensions used in each file,
because I try to keep them to a minimum.
I would like to see a LANGUAGE Haskell' which includes the things that are
likely to be in Haskell' (if there is ever a Haskell').
-- Lennart
On Nov 20, 2007 9:42 PM, Alex
For people like Lennart, perhaps the correct answer is a compiler flag
that enumerates the extensions used as a warning. The warning should be
enough to help him keep the extensions to a minimum.
-Alex-
Lennart Augustsson wrote:
I'm very much in favor of listing the exact extensions used
On Tue, 2007-11-20 at 19:18 -0500, Alex Jacobson wrote:
When you want automated deriving of show/read etc., you need all the
components of your type also to be instances of show/read but you won't
want to *require* them to be automatically generated verions.
Standalone deriving does the
duncan.coutts:
On Tue, 2007-11-20 at 19:18 -0500, Alex Jacobson wrote:
When you want automated deriving of show/read etc., you need all the
components of your type also to be instances of show/read but you won't
want to *require* them to be automatically generated verions.
Standalone
I'm pleased to announce fixpoint 0.1, a (for now) small generic
programming library which allows data types to be manipulated as
fixpoints of their underlying functors. The library is mostly based on
Functional Programming with Bananas, Lenses, Envelopes and Barbed Wire
by Erik Meijer, Maarten
Does 'MonadState s m = MonadState s (ReaderT r m)', found in
Control.Monad.Reader violate the coverage condition as I believe it
does?
Yes, it does.
Can one write a function using this library to force the type
inference engine to loop indefinitely? If not, what mitigating
conditions prevent
Hi,
A bit of a detailed technical question.
I'm writing a library which makes heavy use of the MTL (Monad.State,
etc) and monad transformers. I have a monad transformer, MymonadT,
which I want to inherit relevant type classes from the monads it
transforms, i.e.
MonadState s m = MonadState s
Interested in recruiting Haskell programmers from Chalmers/Gothenburg
university? As an experiment, I am planning a recruitment event here in
December-see www.jobs-in-fp.org for how to take part.
John Hughes
___
Haskell mailing list
Roman Leshchinskiy wrote:
instance Fixpoint [a] where
data Pre [a] s = Nil | Cons a s
project [] = Nil
project (x:xs) = Cons x xs
inject Nil = []
inject (Cons x xs) = x : xs
With this, we can easily define things like catamorphisms:
cata :: Fixpoint t = (Pre t s - s) -
Good stuff! You might also want to consider including code from
Uustalu et al, Recursion Schemes from Comonads, 2001
http://citeseer.ist.psu.edu/uustalu01recursion.html
Chapter 7 has code formatted as Literate Haskell that generalizes cata,
ana, hylo (iteration), and para (primitive recursion)
==
Tutorial Announcement and Call for Participation
Using Proof Assistants for Programming Language Research
Or:
How to Write Your Next POPL Paper
When you want automated deriving of show/read etc., you need all the
components of your type also to be instances of show/read but you won't
want to *require* them to be automatically generated verions.
Standalone deriving does the wrong thing here. Standalone deriving
should not cause an
Peter Verswyvelen [EMAIL PROTECTED] writes:
Most research papers have the same layout: two columns per A4
page. They mostly come as PDF or PS.
I think it is (more and more) common these days for journals to
publish an HTML version on their web site. Otherwise I'd suggest
e-mailing the author
On Nov 20, 2007, at 3:25 , Ketil Malde wrote:
Brandon S. Allbery KF8NH [EMAIL PROTECTED] writes:
Only up to a point; not all programs written using such libraries are
necessarily going to end up on hackage. (Consider the code written
by the financials folks that have been mentioned here
Thank you, that's perfect.
Jim
stefan kersten-2 wrote:
On 16.11.2007, at 13:55, Jim Burton wrote:
The docs say Should be of the form http://host:port, host,
host:port, or
http://host; but none of the variations work. Any ideas where I
might find
an example of code that does this?
Simon Peyton-Jones [EMAIL PROTECTED] writes:
* Hardest of all: evolution. Both GHC's user manual and library docs
change every release. Even material that doesn't change can get moved
(e.g. section reorganisation). We don't want to simply discard all
user notes! But it's hard to know how
On Mon, 2007-11-19 at 20:22 -0600, Nicolas Frisby wrote:
On Nov 19, 2007 4:16 PM, Duncan Coutts [EMAIL PROTECTED] wrote:
On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote:
nicolas.frisby:
*snip*
1) The fact that serialisation is fully strict for 32760 bytes but
not
On Mon, 2007-11-19 at 20:06 -0600, Nicolas Frisby wrote:
In light of this discussion, I think the fully spine-strict list
instance does more good than bad argument is starting to sound like a
premature optimization. Consequently, using a newtype to treat the
necessarily lazy instances as
On Mon, 2007-11-19 at 23:18 -0200, Felipe Lessa wrote:
Hello,
I'd like to start a project using Gtk2Hs and one thing is concerning
me: what's the current approach on writing portable and translatable
GUI programs in Haskell?
For the simple case of translating strings in a .glade UI, glade
| the php documentation has user contributed notes
| http://www.php.net/manual/en/introduction.php
| I think this is a very nice feature.
* Hardest of all: evolution. Both GHC's user manual and
library docs change every release. Even material that
doesn't change can get moved
Brandon S. Allbery KF8NH [EMAIL PROTECTED] writes:
Kind of like Google PageRank for libraries.
Yes.
Only up to a point; not all programs written using such libraries are
necessarily going to end up on hackage. (Consider the code written
by the financials folks that have been mentioned here
| the php documentation has user contributed notes where people can leave
| sniplets of useful code as comments, eg
|
| http://www.php.net/manual/en/introduction.php
|
| I think this is a very nice feature.
|
| I would love to have this on haskell, especially because the
| documentation often
Hi,
* Hardest of all: evolution. Both GHC's user manual and library docs change
every release. Even material that doesn't change can get moved (e.g. section
reorganisation). We don't want to simply discard all user notes! But it's
hard to know how to keep them attached; after all they
Simon Peyton-Jones wrote:
| the php documentation has user contributed notes where people can leave
| sniplets of useful code as comments, eg
|
| http://www.php.net/manual/en/introduction.php
|
| I think this is a very nice feature.
|
| I would love to have this on haskell, especially
On Monday 19 November 2007 22:12, Don Stewart wrote:
Check the thesis on Frag for a pure approach, or just use StateT IO.
Has Frag been fixed to work on x86-64?
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e
Hello Brandon,
Tuesday, November 20, 2007, 1:15:34 AM, you wrote:
The ability to vote on packages might be interesting here. If
there's 4 HTML libraries and one of them gets lots of votes, it's
probably the one to look at first.
it can be made easy and automatic by just publishing number of
Hi,
I have same problem.
Hm, this actually is supposed to work. Could you please re-run this
procedure with the original path and with maximum verbosity? I.e.:
runhaskell Setup configure -v3
Here is the problem:
D:\private\haskell\MaybeT-0.1.0runghc Setup.hs configure -v3
Configuring
Hello Andrew,
Monday, November 19, 2007, 10:47:49 PM, you wrote:
- (And, since I'm on Windows, I can't seem to get anything to install
with Cabal...)
with ghc 6.4/6.6 and their built-in Cabal version, i never seen
problems. sorry, can't say anything about 6.8 and new Cabal
--
Best regards,
Dimitry Golubovsky wrote:
If I have
callCC $ \exit - do
foo
...
I cannot jump to `exit' from within foo unless `exit' is given to foo
as an argument.
As Derek Elkins has written, one of the options is to use delimited
continuations, see
On Mon, 2007-11-19 at 21:49 -0800, Bryan O'Sullivan wrote:
Neil Mitchell wrote:
- The packages seem to be of quite variable quality. Some are excellent,
some are rather poor (or just not maintained any more).
The problem is that only one person gets to comment on the quality of
a
On Tue, 2007-11-20 at 13:45 +0300, Bulat Ziganshin wrote:
Hello Brandon,
Tuesday, November 20, 2007, 1:15:34 AM, you wrote:
The ability to vote on packages might be interesting here. If
there's 4 HTML libraries and one of them gets lots of votes, it's
probably the one to look at
I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that
the output from an app I am working on changed. I have distilled the
code down to the following example that produces different output
depending on whether it is compiled with -O2 or not:
main = do
let (T x) = read T 3
Chris,
You answer was quite a bit more than I expected for a simple style
question. Thanks.
On Nov 19, 2007 12:27 PM, ChrisK [EMAIL PROTECTED] wrote:
The data dependency is circular.
Yes, thus the need for the knot. I gather your answer to my style question
is you prefer knot tying over
On Mon, 2007-11-19 at 10:25 -0800, brad clawsie wrote:
i would categorize myself as a purely practical programmer. i enjoy
using haskell for various practical tasks and it has served me
reliably. one issue i have with the library support for practical
problem domains is the half-finished state
On Nov 19, 2007 11:42 AM, apfelmus [EMAIL PROTECTED] wrote:
Thanks. The interesting case of nested blocks still needs to be
specified, but with this description in mind and judging from the code,
I guess it behaves as follows: either a block fits entirely on the
remaining line (no line breaks
Thanks for the feedback. Unfortunatly the Space Invaders game uses HGL,
which is not supported on Windows anymore. Is it supported on Linux?
Frag does compile and run on Windows using GHC 6.6.1, so that might be a
better starting point.
What is the current consensus regarding (A)FRP? Is it a
I would like to compare this to the GNOME development platform. It has
Gtk+ at it's hart but GNOME releases are not synchronised with Gtk+
releases. The GNOME development platform consists of a collection of
standard packages. The collection is released on a time-based schedule,
not a
On Tue, Nov 20, 2007 at 08:55:47AM +, Simon Peyton-Jones wrote:
But we're just not sure how to do it:
* What technology to use?
* Matching up the note-adding technology with the existing
infrastructure - GHC's user manual starts as XML and is generated into
HTML by DocBook - In
Yes, those are good points. Maybe adding functionality similar to plt's
planet http://planet.plt-scheme.org and
http://download.plt-scheme.org/doc/371/html/mzscheme/mzscheme-Z-H-5.html#node_sec_5.4
In plt scheme including a module, not present in the local repository
, but included via planet,
good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C
You (or someone else) should add it to
http://hackage.haskell.org/trac/ghc
Christian
Brad Clow wrote:
I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that
the output from an app I am working on changed.
On Tue, 2007-11-20 at 12:33 +, Krzysztof Kościuszkiewicz wrote:
On Tue, Nov 20, 2007 at 08:55:47AM +, Simon Peyton-Jones wrote:
But we're just not sure how to do it:
* What technology to use?
* Matching up the note-adding technology with the existing
infrastructure - GHC's
Thank you very much for the error report. I have tracked down the cause.
You are searching against an empty Bytestring. This is now represented by
-- | /O(1)/ The empty 'ByteString'
empty :: ByteString
empty = PS nullForeignPtr 0 0
And while the useAsCString and useAsCStringLen functions
Christian Maeder wrote:
good bug! -O or -O2 is irrelevant but it works if compiled with -fvia-C
You (or someone else) should add it to
http://hackage.haskell.org/trac/ghc
I guess that this is related to
http://thread.gmane.org/gmane.comp.lang.haskell.cafe/31675
Regards,
apfelmus
ChrisK wrote:
The data dependency is circular.
Yes and no. The input and outputs pairs are dependent on each other, but
the integer doesn't depend on the string. Thus, I'm pretty sure that
(Int, String) - (Int, String)
can be refactored into
Int - (Int, String - String)
This is
Thomas Schilling [EMAIL PROTECTED] writes:
I would advocate using a comment system that is similar to the one
at http://djangobook.com/.
I'm pretty sure Brian O'Sullivan has written a Haskell implementation of
this for the Real World Haskell book.
While the technology is there (or will
2. How do you implement a program that is fundamentally about state
mutation in a programming language which abhors state mutation?
Its not clear games are fundamentally about mutation, anymore than, say,
window managers are. State we do with monads.
Indeed. Ignoring the concept of a monad
On Nov 20, 2007 9:36 AM, ChrisK [EMAIL PROTECTED] wrote:
Thank you very much for the error report. I have tracked down the cause.
You are searching against an empty Bytestring. This is now represented by
-- | /O(1)/ The empty 'ByteString'
empty :: ByteString
empty = PS nullForeignPtr
Interested in recruiting Haskell programmers from Chalmers/Gothenburg
university? As an experiment, I am planning a recruitment event here in
December-see www.jobs-in-fp.org for how to take part.
Just checked my calendar and all according to Murphy's law this had to be
the weekend when i'm
[redirecting from [EMAIL PROTECTED]
apfelmus wrote:
[...]
I wonder whether a multi parameter type class without fundeps/associated
types would be better.
class Fixpoint f t where
inject :: f t - t
project :: t - f t
[...]
Interestingly, this even gives slightly shorter type
On 11/20/07, Ian Lynagh [EMAIL PROTECTED] wrote:
Hi Brad,
I can't reproduce this. Can you please tell us what platform you are on
(e.g. x86_64 Linux) and what gcc --version says?
Also, where did your GHC come from, e.g. bindists from the download
page, self-compiled?
Also, as Christian
Speaking of Tetris and Space Invaders, you might be interested in this project:
http://www.geocities.jp/takascience/haskell/monadius_en.html
It's a clone of Gradius written in Haskell.
-Nick
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Tue, 2007-11-20 at 16:00 +0100, Ketil Malde wrote:
Thomas Schilling [EMAIL PROTECTED] writes:
I would advocate using a comment system that is similar to the one
at http://djangobook.com/.
I'm pretty sure Brian O'Sullivan has written a Haskell implementation of
this for the Real
On 11/19/07, Andrew Coppin [EMAIL PROTECTED] wrote:
Well, I just tried to install this, and as per usual, Cabal has having
none of it.
C:\fusion\ runhaskell Setup configure
Configuring stream-fusion-0.1.1...
Setup: ld is required but it could not be found.
Hi Andrew,
I had the same
Hi Brad,
On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote:
$ ./test
23
24
I can't reproduce this. Can you please tell us what platform you are on
(e.g. x86_64 Linux) and what gcc --version says?
Also, where did your GHC come from, e.g. bindists from the download
page,
Greetings,
There are new version 0.82 and 0.93 of regex-posix. If you use regex-posix with
Data.ByteString then you should upgrade to obtain a fix for a crash error.
There are new version of regex-pcre available on hackage and the two darcs
repositories:
I was able to compile and play space invaders on linux.
Hours of fun for the whole family :)
thomas.
Peter Verswyvelen [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
11/20/2007 06:46 AM
Please respond to
[EMAIL PROTECTED]
To
Don Stewart [EMAIL PROTECTED]
cc
Haskell-Cafe
On Nov 20, 2007, at 5:45 , Bulat Ziganshin wrote:
Hello Brandon,
Tuesday, November 20, 2007, 1:15:34 AM, you wrote:
The ability to vote on packages might be interesting here. If
there's 4 HTML libraries and one of them gets lots of votes, it's
probably the one to look at first.
it can be
Ian Lynagh wrote:
Hi Brad,
On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote:
$ ./test
23
24
I can't reproduce this. Can you please tell us what platform you are on
(e.g. x86_64 Linux) and what gcc --version says?
I see a bug that only affects x86_32.
The native code
Andrew Coppin wrote:
2. How do you implement a program that is fundamentally about state
mutation in a programming language which abhors state mutation?
Haskell taught me one thing (at least). The World is not mutating but it
is moving. Physics shows that no movement (no time) means no World
Krzysztof Kościuszkiewicz wrote:
I would advocate using a comment system that is similar to the one
at http://djangobook.com/.
That's an appealing idea, but the devil lies in the details.
I wrote just such a comment system for draft chapters of our book, and
it's seen a lot of use.
On Nov 20, 2007 4:32 PM, Ian Lynagh [EMAIL PROTECTED] wrote:
Hi Brad,
On Tue, Nov 20, 2007 at 09:50:02PM +1000, Brad Clow wrote:
$ ./test
23
24
I can't reproduce this. Can you please tell us what platform you are on
(e.g. x86_64 Linux) and what gcc --version says?
Also, where did
Hello brad,
Monday, November 19, 2007, 9:25:40 PM, you wrote:
practical projects. the batteries included approach does imply
choosing preferred solutions when more than one library is available,
this can also be difficult. that said, i think haskell would pick up a
lot of new coders if it
At Mon, 19 Nov 2007 19:57:14 +,
Neil Mitchell wrote:
All these PDF's are produced from a standard Latex class file. For
all my papers I have the original source .tex files. I suspect
you'll have more luck going from the original .tex rather than the
PDF.
I would be especially neat if
Brad Clow wrote:
I upgraded from GHC 6.6.1 to 6.8.1 and around that time I noticed that
the output from an app I am working on changed. I have distilled the
code down to the following example that produces different output
depending on whether it is compiled with -O2 or not:
[...]
I've
At Mon, 19 Nov 2007 21:25:23 +,
Andrew Coppin wrote:
If you were going to implement Tetris in Haskell, how would you do it?
(For that matter, has anybody already *done* it? It would probably make
a nice example program...)
A minimal openGL haskell tetris clone:
jon:
On Monday 19 November 2007 22:12, Don Stewart wrote:
Check the thesis on Frag for a pure approach, or just use StateT IO.
Has Frag been fixed to work on x86-64?
Not that I'm aware of -- it lacks a game head maintainer
___
Haskell-Cafe mailing
jeremy.shaw:
At Mon, 19 Nov 2007 21:25:23 +,
Andrew Coppin wrote:
If you were going to implement Tetris in Haskell, how would you do it?
(For that matter, has anybody already *done* it? It would probably make
a nice example program...)
A minimal openGL haskell tetris clone:
haskell:
Thank you very much for the error report. I have tracked down the cause.
You are searching against an empty Bytestring. This is now represented by
-- | /O(1)/ The empty 'ByteString'
empty :: ByteString
empty = PS nullForeignPtr 0 0
And while the useAsCString and
[note, the thread is almost a month old]
Bernie Pope wrote:
On 23/10/2007, at 8:09 AM, Thomas Hartman wrote:
(Prelude sort, which I think is mergesort, just blew the stack.)
GHC uses a bottom up merge sort these days.
It starts off by creating a list of singletons, then it repeatedly
Jeremy Shaw wrote:
http://haskell-tetris.pbwiki.com/Main
A minimal openGL haskell tetris clone:
Neat! I shall have to give this a try...
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi,
(Nitpick: Don't you need Gtk2hs in order to *use* OpenGL? I mean, you
have to open a window to render into somehow, and that's outside the
OpenGL standard...)
You have GLUT library for just that:
http://www.haskell.org/ghc/docs/latest/html/libraries/GLUT-2.1.1.1/Graphics-UI-GLUT.html
1 - 100 of 133 matches
Mail list logo