[Haskell-cafe] Dealing with CStringLen

2008-11-08 Thread Maurí­cio
Hi, How is CStringLen supposed to be used? The only usual C string I'm familiar with is the null terminated sequence of chars. I remember some Pascal version where the first 2 bytes were used as an integer counting the following characters. What is the convention used in Foreign.C.String? I have

Re: [Haskell-cafe] Haskell Quick Reference (1-page PDF)

2008-11-08 Thread Don Stewart
Malcolm.Wallace: > Some time ago, there was a thread about a "CheatSheet" for Haskell > beginners. As I recall, the CheatSheet was more than 12 pages long. > > For a Haskell tutorial I was running at a conference recently, I needed > a "Quick Reference Guide" that would fit onto a single side of

[Haskell-cafe] Haskell Weekly News: Issue 92 - November 8, 2008

2008-11-08 Thread Brent Yorgey
--- Haskell Weekly News http://sequence.complete.org/hwn/20081108 Issue 92 - November 08, 2008 --- Welcome to issue 92 of HWN, a newsletter covering

Re: [Haskell-cafe] view patterns

2008-11-08 Thread Dan Licata
Hi everyone, Yes, the current overlap checker thinks all view patterns are overlapped. The pattern overlap/exhaustiveness checker needs to be rewritten to account for GADTs and view patterns. You can use -fno-warn-overlapping-patterns to suppress these warning (along with any actual overlaps, th

[Haskell-cafe] ANNOUNCE: gitit 0.2 release - wiki using HAppS, git, pandoc

2008-11-08 Thread John MacFarlane
I've uploaded an early version of gitit, a Haskell wiki program, to HackageDB. Gitit uses HAppS as a webserver, git for file storage, pandoc for rendering the (markdown) pages, and highlighting-kate for highlighted source code. Some nice features of gitit: - Pages and uploaded files are stored

[Haskell-cafe] generalized list comprehensions

2008-11-08 Thread Johannes Waldmann
Looking at this funny new feature http://haskell.org/ghc/docs/6.10.1/html/users_guide/syntax-extns.html#generalised-list-comprehensions I have just one question - why doesn't this work with the do-notation? I avoid list comprehensions because I feel that "return" belongs at the end, not in front.

re: [Haskell-cafe] ANNOUNCE: rewriting-0.1

2008-11-08 Thread Greg Meredith
Thomas, Did you explore nominal rewrite at all? Do you know if it might be possible to use the scrap-your-nameplate package to implement some useful subset of the nominal rewrite machinery? Best wishes, --greg -- L.G. Meredith Managing Partner Biosimilarity LLC 806 55th St NE Seattle, WA 98105

Re: [Haskell-cafe] generalized list comprehensions

2008-11-08 Thread Max Bolingbroke
2008/11/8 Johannes Waldmann <[EMAIL PROTECTED]>: > Looking at this funny new feature > http://haskell.org/ghc/docs/6.10.1/html/users_guide/syntax-extns.html#generalised-list-comprehensions > I have just one question - why doesn't this work with the do-notation? > > I avoid list comprehensions becau

Re: [Haskell-cafe] Dealing with CStringLen

2008-11-08 Thread Claude Heiland-Allen
Maurí­cio wrote: Hi, How is CStringLen supposed to be used? The only usual C string I'm familiar with is the null terminated sequence of chars. I remember some Pascal version where the first 2 bytes were used as an integer counting the following characters. What is the convention used in Foreign

Re: [Haskell-cafe] generalized list comprehensions

2008-11-08 Thread Johannes Waldmann
I don't think we considered the possibility you might use do notation for the list monad, as it's not an idiom that seems to occur often. depends where you look, I guess. (Such questions could in principle be answered automatically by browsing the code on hackage?) As I said, I am avoiding lis

Re: [Haskell-cafe] ANNOUNCE: gitit 0.2 release - wiki using HAppS, git, pandoc

2008-11-08 Thread Don Stewart
jgm: > I've uploaded an early version of gitit, a Haskell wiki program, to > HackageDB. Gitit uses HAppS as a webserver, git for file storage, > pandoc for rendering the (markdown) pages, and highlighting-kate for > highlighted source code. Awesome. Well done, as always, John! -- Don

Re: [Haskell-cafe] Physics engines purely in Haskell?

2008-11-08 Thread Don Stewart
mwassell: > Has anyone thought about or embarked on the task of developing a 2D or > 3D physics engine purely in Haskell? > > There is Hipmunk but I'm wondering about a purely Haskell > implementation; possibly a port of Chipmunk to Haskell. http://haskell.org/haskellwiki/Hpysics "Hpys

[Haskell-cafe] Physics engines purely in Haskell?

2008-11-08 Thread Mark Wassell
Has anyone thought about or embarked on the task of developing a 2D or 3D physics engine purely in Haskell? There is Hipmunk but I'm wondering about a purely Haskell implementation; possibly a port of Chipmunk to Haskell. Mark ___ Haskell-Cafe ma

[Haskell-cafe] FFI documentation?

2008-11-08 Thread Nun Aurbiz
Where do I find the documentation for the FFI for GHC? I've read the FFI report, the GHC user guide and scoured haskell.org but they all gloss over what commands you actually need to give GHC and how to give them. "foreign import blah blah" just gives me undefined references. _

Re: [Haskell-cafe] FFI documentation?

2008-11-08 Thread Luke Palmer
2008/11/8 Nun Aurbiz <[EMAIL PROTECTED]>: > Where do I find the documentation for the FFI for GHC? I've read the FFI > report, the GHC user guide and scoured haskell.org but they all gloss over > what commands you actually need to give GHC and how to give them. "foreign > import blah blah" just g