Re: [Haskell-cafe] Lazy Parsing

2009-05-28 Thread Malcolm Wallace
Henning Thielemann wrote: > I don't think that it is in general possible to use the same parser > for lazy and strict parsing, just because of the handling of parser > failure. Polyparse demonstrates that you can mix-and-match lazy parsers with strict parsers in the different parts of a grammar

Re: [Haskell-cafe] Expression parsing problem

2009-05-19 Thread Malcolm Wallace
The grammar: expression = "get" | [ "+" | "-" ] term { ( "+" | "-" ) term } term = factor { ( "*" | "/" ) factor } factor = IDENTIFIER | VALUE | "(" expression ")" I can't make term parse, for instance "1 * 2 / 3" Indeed, the grammar does not admit "1*2/3" as a sentence of that lan

Re: [Haskell-cafe] question on the Prelude .. vis-a-vis

2009-05-13 Thread Malcolm Wallace
"Vasili I. Galchin" wrote: > Graham Lyle has written some seriously beautiful code That would be Graham _Klyne_. > 1) I strongly suspect that in Swish 0.2.1 that some of Graham's > libaries are already superseded by the Haskell prelude , e.g. HUnit, > Parsec(!!!), his Sort directory/librar

Re: [Haskell-cafe] Research in functional programming

2009-05-04 Thread Malcolm Wallace
Louis Wasserman wrote: > Where might I find or submit a paper on functional data structures? > Examples I've found so far include ICFP > and the JFP > , but > Google hasn't found me anything else. See a

Re: [Haskell-cafe] Problems with Haskell Program Coverage

2009-04-23 Thread Malcolm Wallace
Dominic Steinitz wrote: > I want to use hpc to check that the ASN.1 library tests cover all the > code. When I run it with a set of tests that I *know* don't test > certain things, it reports that they have been covered i.e. there are > not coloured in the markup that hpc produces. I would hav

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-20 Thread Malcolm Wallace
> > Just refuse to use UHC until it conforms. > Do you not use Hugs for the same reason? Not to mention that GHC does not comply with the H'98 standard either: http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs-and-infelicities.html#vs-Haskell-defn Regards, Malcolm ___

Re: [Haskell-cafe] minor typo in "The Haskell 98 Report"

2009-04-06 Thread Malcolm Wallace
; Thanks for the bug report. As noted on the page http://haskell.org/haskellwiki/Language_and_library_specification "The report still has minor bugs. There are tracked at the Haskell 98 bugs page. Report any new bugs to Malcolm Wallace". (There are links for the bugs page, and

Re: [Haskell-cafe] Possible floating point bug in GHC?

2009-04-03 Thread Malcolm Wallace
Interesting. This could be the cause of a weird floating point bug that has been showing up in the ghc testsuite recently, specifically affecting MacOS/Intel (but not MacOS/ppc). http://darcs.haskell.org/testsuite/tests/ghc-regress/lib/Numeric/num009.hs That test compares the result of t

Re: [Haskell-cafe] Program using 500MB RAM to process 5MB file

2009-04-03 Thread Malcolm Wallace
> > (2) You are parsing strictly, meaning you have to read the whole > > input file before anything can be output. This is likely the main performance problem. I'm guessing you are using parsec. Try switching to polyparse if you want to try out lazy parser combinators instead. (module Text.Pa

Re: [Haskell-cafe] Re: Reverting to any old version using Darcs

2009-04-03 Thread Malcolm Wallace
> > Thus the uploaded sdist was missing one of the source files, and > > consequently failed to build. > > I have a pre-release make target where I test everything I can think > of. I think it prevents the above, am I right ? Not unless you run 'make check' in a separate pristine copy of the r

Re: [Haskell-cafe] Is there a way to see the equation reduction?

2009-04-01 Thread Malcolm Wallace
Daryoush Mehrtash wrote: > But I am more interested in seeing the expansion and reduction that > the execution encounters as it lazily evaluates the function. Have you tried GHood? http://www.cs.kent.ac.uk/people/staff/cr3/toolbox/haskell/GHood/ It is a bit like the recently-released Vacuu

Re: [Haskell-cafe] ANN: cmonad 0.1.1

2009-03-30 Thread Malcolm Wallace
On 30 Mar 2009, at 20:16, Andrew Coppin wrote: Lennart, what is the next language DSL you are going to build? Prolog? XSLT? Declarative 3D scene construction? ;-) The ICFP programming contest in year 2000 was to write a ray tracer for a given declarative 3D scene construction language (CSG

Re: [Haskell-cafe] Record updates

2009-03-29 Thread Malcolm Wallace
Now suppose that foo3 :: [Int], and I want to prepend 5 to it. I end up having to write something like let v1 = v0 {foo3 = 5 : (foo3 v0)} There used to be a feature in pre-Haskell'98 called "named field puns", which allows to use a shorter form of field access. Your example would come ou

Re: [Haskell-cafe] Logo Vote crashed? (was: Haskell Logo write-in candidate)

2009-03-20 Thread Malcolm Wallace
Warren Harris wrote: > After spending a bit of time trying to decide how to vote, I ended up > deciding that my favorite would be a hybrid of several of the designs > (#9 & #49 FalconNL, and #50 George Pollard). It's probably too late to > include this in the voting, but here it is nonetheless:

[Haskell-cafe] Google Summer of Code

2009-03-18 Thread Malcolm Wallace
I am pleased to announce that haskell.org has once again been accepted as a mentoring organisation, for the 2009 Google Summer of Code. Student applications open on Monday (23rd March) at 1900 UTC, for a period of 12 days (until Fri 3rd April, also at 1900 UTC). Students applicants are enc

Re: [Haskell-cafe] broken IO support in uvector package, when using non primitive types

2009-03-14 Thread Malcolm Wallace
The main issue seems to be that although the semantics of UIO may be arbitrary, Wallace's patch actually broke deserialization for any production-based UArr, and I'm not sure the benefits are worthwhile (loading a file someone else sent you) given that endianness is already not taken into account

Re: [Haskell-cafe] Re: Haskell-Wiki Account registration

2009-03-14 Thread Malcolm Wallace
On 14 Mar 2009, at 10:20, Ashley Yakeley wrote: We will have a more up-to-date distribution when a new machine takes over from the existing machine at Yale. I don't know when anyone will have a new machine. The contract with Yale for running the haskell.org machine is due for its yearly r

[Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-03-10 Thread Malcolm Wallace
> > The Google Summer of Code will be running again this year.  Once > > again, haskell.org has the opportunity to bid to become a mentoring > > organisation.  (Although, as always, there is no guarantee of > > acceptance.) > > Google is now accepting applications: Indeed. Since I am (perhaps by

Re: [Haskell-cafe] Parsing floating point numbers

2009-03-09 Thread Malcolm Wallace
Bjorn Buckwalter wrote: > What is your preferred method of parsing floating point numbers (from > String to Float/Double)? Parsec it seems only does positive floats out > of the box and PolyParse requires the float to be on scientific form > (exponential). Thanks for the bug report. Polyparse i

Re: [Haskell-cafe] Re: [darcs-users] darcs and Google Summer of Code

2009-02-20 Thread Malcolm Wallace
> > That is correct. The haskell.org mentors decided to spend the money > > on hosting the haskell.org and community.haskell.org web sites and > > services, to benefit the whole community rather than just > > themselves. > > Hmm, mentoring a project also benefits the whole community and not > jus

Re: [Haskell-cafe] Re: [darcs-users] darcs and Google Summer of Code

2009-02-19 Thread Malcolm Wallace
> > Unless Google's changed things, the organization gets 500$ for each > > project. What the Darcs organization does with that, who knows. > > Yes, who knows. The Haskell organization didn't give a cent > to the mentors, as far as I know. Am I wrong here? That is correct. The haskell.org mento

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-12 Thread Malcolm Wallace
Gwern Branwen wrote: > * A GUI interface to Darcs > (http://hackage.haskell.org/trac/summer-of-code/ticket/17); I wonder whether darcs ought to apply to be a GSoC mentoring organisation in its own right this year? It would be good to attempt to get a couple of dedicated slots for darcs only (in

Re: [Haskell-cafe] (Off-topic) CUDA

2009-02-06 Thread Malcolm Wallace
(Also... Haskell on the GPU. It's been talked about for years, but will it ever actually happen?) gpu is just set of simd-like instructions. so the reason why you will never see haskell on gpu is the same as why you will never see it implemented via simd instructions :D Because SIMD/GPU deal

Re: [Haskell-cafe] Elegant & powerful replacement for CSS

2009-02-03 Thread Malcolm Wallace
Jeff Heard wrote: Similarly, I've been wondering what's at the core of a GUI? It seems in recent years that more people have been moving towards web-based applications, and away from traditional GUIs, so the meaning of them may be changing. The old question seemed to be Page vs. Control-Board,

Re: [Haskell-cafe] How outdated is Hugs?

2009-01-29 Thread Malcolm Wallace
On 29 Jan 2009, at 20:49, Ross Paterson wrote: Hugs uses cpphs, but it has to build a dozen packages (including Cabal) before cpphs is available. Once it is, they're built again. That strikes me as odd. The cpphs implementation deliberately has minimal dependencies - Haskell'98 libraries

[Haskell-cafe] Re: list choices

2009-01-25 Thread Malcolm Wallace
The duplicate messages will have the same Message-ID... if they post a message they *want* the reply to go to their main inbox as well as the mailing list folder. Maybe I am just stupid, or maybe my email client is inadequate, but I cannot work out how to filter the same email such that dif

Re: list choices (was [Haskell-cafe] ANN: filestore 0.1)

2009-01-25 Thread Malcolm Wallace
All announcements should go to hask...@haskell.org if nowhere else. In practice, it is probably best to post to both haskell and haskell-cafe and this is what most people do. I would suggest that posting announcements *only* to haskell@, but with followups set to haskell-cafe@, is the ideal

Re: [Haskell-cafe] Re: Threads with high CPU usage

2008-12-22 Thread Malcolm Wallace
Don Stewart wrote: > Modify the 'unsafe' inports to be 'safe'? I don't think HDBC is going > to call back in, so should be fine. John? For those who are puzzled, Don is suggesting that foreign import ccall unsafe "foo" :: Bar -> Baz should simply be changed to foreign import ccall safe "

Re: [Haskell-cafe] Time for a new logo?

2008-12-16 Thread Malcolm Wallace
Andrew Coppin wrote: > To him, apparently, the current logo says "Haskell is all > about arcane and obscure mathematical constructs. In fact, we think > that complicated mathematics is so good that we stuffed our logo full > of it. If you don't like hard math, don't even bother trying to learn

Re: [Haskell-cafe] Haskell haikus

2008-12-06 Thread Malcolm Wallace
(This point, incidentally, raises a hobbyhorse of mine - Google didn't see the TMR haikus because they were in PDF. How odd. Googling for "haskell haiku TMR" brings up that PDF as the first hit for me. Regards, Malcolm ___ Haskell-Cafe mailin

Re: [Haskell-cafe] workarounds for Codec.Compression.Zlib errors in darcs

2008-11-26 Thread Malcolm Wallace
... to work out the C types and then map them to Haskell ones, to check they're the same as the declared types in the .hs files. I'd like to point out that the FFI specification already has such a mechanism. That is, if you use the optional specification of a header file for each foreign imp

[Haskell-cafe] Re: [Haskell] Does GHC support the standard CPP functionalities?

2008-11-22 Thread Malcolm Wallace
[moved to haskell-cafe] {-# LANGUAGE CPP #-} module Packer where #define FLASH_APP_START 1 #define FLASH_APP_END2 #define INSERT_SECTION(x) (#x, (FLASH_##x##_START, FLASH_##x##_END)) The CPP stringization operator # and the token-catenation operator ## are ANSI additions over the trad

Re: [Haskell-cafe] HOpenGL shading problem

2008-11-13 Thread Malcolm Wallace
Trin <[EMAIL PROTECTED]> wrote: > But I have a problem with shading. Whatever I have been trying, > I still don't understand how the shading can be activated. I have > light, I have color, but not even Flat shading. I think if you want shading, you need to compute the normals to each surface. Re

Re: [Haskell-cafe] Re: What *not* to use Haskell for

2008-11-12 Thread Malcolm Wallace
"what does Haskell not do well?" - When you feed it Java code. Incidentally, the same holds when you feed it C code. I've heard that Haskell's new (developed in this year's GSoC) Language.C libraries were able to parse millions of lines of C code from the Linux kernel, including many g

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-12 Thread Malcolm Wallace
"Anatoly Yakovenko" <[EMAIL PROTECTED]> wrote: > Has there been any progress in getting ghc set up for porting to non > x86/unix/windows platforms? Can it generate ropi code? It would also > be nice to be able to compile to C that rvct/arm tools can compile in > thumb mode. AFAIK, you can boots

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Malcolm Wallace
Jules Bean <[EMAIL PROTECTED]> wrote: > GHC's scheduler lacks any hard timeliness guarantees. > > This is probably not a fundamental problem with haskell. It's a > problem with the compiler/RTS which we happen to be using. Actually, I would say it is much worse than that. It is not merely a qu

Re: [Haskell-cafe] Exporting a Type Class for Type Signatures

2008-11-11 Thread Malcolm Wallace
Dominic Steinitz <[EMAIL PROTECTED]> wrote: > Is there a way of allowing someone to use > AESKey in a type signature but not allow them to declare new > instances? I was going to suggest you export the class abstractly, that is, without its methods, so no-one could externally create an instance.

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Graphalyze-0.4 and SourceGraph-0.2

2008-10-13 Thread Malcolm Wallace
Ivan Lazar Miljenovic <[EMAIL PROTECTED]> wrote: > In this case, it isn't SourceGraph's fault: Haskell-Src-Exts can't > parse it. Maybe it doesn't parse CPP stuff properly? I'm not sure how > I can get SourceGraph to parse files only after they've been > pre-processed... You could try using the

Re: [Haskell-cafe] Re: Hmm, what license to use?

2008-10-02 Thread Malcolm Wallace
> The GPL and LGPL are needlessly difficult for mere > mortals to understand in their entirety, and as you've alluded to, > many lawyers would interpret it differently. I suspect many different > judges would too. I think the evidence is rather to the contrary. Most lawsuits involv

Re: [Haskell-cafe] Re: Hmm, what license to use?

2008-10-01 Thread Malcolm Wallace
Just a small nuance to what Don wrote: * Haskell libraries are always statically linked and agressively inlined, But only for GHC (and jhc?). so opinion seems to be that LGPL licensed *Haskell libaries* are unsuitable for any projects you want to ship commercia

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread Malcolm Wallace
When I wanted to upgrade to yi 0.4.6.2, I needed to download the new package list cabal update #download list of new packages cabal upgrade #make any upgrades I never knew there was a 'cabal update' command, and it worries me. In my unhappy experience of packaging systems (

Re: [Haskell-cafe] Re: 'par' - why has it the type a -> b -> b ?

2008-09-29 Thread Malcolm Wallace
> par2 :: (a -> b -> c) -> a -> b -> c > > > par2 f x y = > > >f x (par x y) Here is the dual: 'par' implemented in terms of parallel application: a `par` b = par2 (\x y-> y) a b > ($!):: (a -> b) -> a -> b > f $! x = x `seq` f x > > It's terseness vs. maximum composability. I don

Re: [Haskell-cafe] Hmm, what license to use?

2008-09-28 Thread Malcolm Wallace
On 26 Sep 2008, at 08:24, Magnus Therning wrote: I've heard that the OCaml crowd uses a modified LGPL with a static linking exception. Unfortunately I've also heard that their addition to LGPL hasn't gotten much review by lawyers, I'd much rather use something that feels less ad hoc, if you get

Re: [Haskell-cafe] 2 modules in one file

2008-08-27 Thread Malcolm Wallace
Maurí­cio <[EMAIL PROTECTED]> wrote: > Is it allowed to write two > different modules in a single > file? Some compilers permit it (e.g. Freja), most do not (e.g. ghc). The Language Report makes no specification for the mapping between module sources and the files that contain them. Regards,

Re: [Haskell-cafe] lines of code metrics

2008-08-20 Thread Malcolm Wallace
per at ICFP 2007 and 2008 might have the kind of thing you are looking for. I know that mine: "Experience Report: Visualizing Data Through Functional Pipelines" David Duke, Rita Borgo, Colin Runciman, Malcolm Wallace ICFP 2008 has a brief comparison of sLoC between Haskell an

Re: [Haskell-cafe] Pretty Print, text or ++?

2008-08-15 Thread Malcolm Wallace
"Paul Keir" <[EMAIL PROTECTED]> wrote: > text (a ++ b ++ c ++ d) The above is going to be ugly-printed onto a single line, whilst this: > text a <+> text b <+> text c <+> text d has a chance to be pretty-printed onto several lines, if each component is individually long. It doesn't really matt

Re: [Haskell-cafe] Phantoms

2008-08-14 Thread Malcolm Wallace
Andrew Coppin <[EMAIL PROTECTED]> wrote: > > instnace Show (Foo Int) ... > > instnace Show (Foo Double) ... > > > > ...WHY did I not think of this myself? o_O Because it is not Haskell'98? It requires {-# LANGUAGE OverlappingInstances #-} Regards, Malcolm __

Re: [Haskell-cafe] GLfloat on a Mac

2008-08-12 Thread Malcolm Wallace
$ ghc -package GLUT HelloWorld.lhs -o HelloWorld Illegal instruction I'm using ghc 6.8.3 on a Mac PowerBook G4. Googling "OpenGL illegal instruction" produced an unending choice of horror stories. Not much help, but it compiles fine for me using ghc-6.8.3 on an iBook G4. I'm running MacOS 10

Re: [Haskell-cafe] Brainstorming on how to parse IMAP

2008-08-04 Thread Malcolm Wallace
> 1) Ideally I could parse stuff lazily. I have tried this with FTP and > it is more complex than it seems at first, due to making sure you > never, never, never consume too much data. PolyParse has lazy variants of its combinators, which would probably be of use here. Software: http://hacka

Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-29 Thread Malcolm Wallace
> I don't think that's right. The HP maintainers are not (and cannot be) > the maintainers of each individual package. That just does not scale. Oh absolutely, but I was imagining that (at least part of) the purpose of the Platform is to generate automatic notifications to package owners, when a c

Re: [Haskell-cafe] Cabal and Strings and CPP

2008-07-29 Thread Malcolm Wallace
"Philip Weaver" <[EMAIL PROTECTED]> wrote: > I'm trying to use CPP-defined strings in a Haskell module, like this: >main :: IO () >main = putStrLn FOO > This of course will not work: >ghc -DFOO="hello world" --make Main.hs -o test Have you tried using ANSI cpp's stringification operat

Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-28 Thread Malcolm Wallace
> FYI: Haskell's OpenGL binding has just been dropped from GHC's > extralibs, which means that it will no longer be kept in sync with GHC > development, at least not by GHC HQ. > > GHC HQ has its hands full and -generally speaking - extralibs are to > be replaced by H(L)P, the Haskell (Library) Pl

Re: Haskell on ARM (was Re: [Haskell-cafe] ANN: Topkata)

2008-06-28 Thread Malcolm Wallace
Just a random note. jhc works fine on ARM, Another semi-random note: nhc12 and nhc13 (precursors to nhc98) were originally developed on an ARM with 2Mb of memory, way back in 1994-5. Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@

Re: [Haskell-cafe] Re: Call Graph Tool?

2008-06-27 Thread Malcolm Wallace
> > try using 'ghc --make -v2' and translate that dependency graph to dot. > > "ghc -M $main.hs" works quite well hmake -M Main.hs gives much the same output as ghc -M, but without side-effecting your Makefile. Even better, hmake -g Main.hs gives the pure module graph dependencies witho

Re: GSoC project blogs? (Re: [Haskell-cafe] Planet haskell)

2008-06-23 Thread Malcolm Wallace
> It would be nice to have blogs for all Haskell GSoC projects > on Planet Haskell. See also http://hackage.haskell.org/trac/summer-of-code/wiki/progress2008 Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.hask

Re: [Haskell-cafe] Safe way to parse arguments?

2008-06-23 Thread Malcolm Wallace
> > I'm wondering how usually you parse command line arguments > > list safely. > > > > Prelude.read: no parse > > It's generally not a good idea to call 'read' on user data. There is (at least one) proper parsing library intended as a direct replacement for Read: http://www.cs.york.ac.uk/fp

Re: [Haskell-cafe] This is a bug?

2008-06-20 Thread Malcolm Wallace
How I solve this issue when call "readXml": in , In a sequence: in , In a sequence: in , Too many elements inside at file ../../../parsers/elite2.xml at line 75 col 15 Found excess: So, your XML document contains a , which contains a sequence of , at least one of which contains a sequ

Re: [Haskell-cafe] Meaning of "ribbonsPerLine" at Text.PrettyPrint.HughesPJ ?

2008-06-19 Thread Malcolm Wallace
To answer the original question (in the subject line), "The ribbon ratio is the number of times the ribbon fits into a line. The ribbon is the number of characters on a line excluding leading and trailing white spaces. " See also the original paper on which the Text.PrettyPrint.HughesPJ

Re: [Haskell-cafe] Bit streams

2008-06-18 Thread Malcolm Wallace
Andrew Coppin <[EMAIL PROTECTED]> wrote: > It appears the library will only handle > data that is byte-aligned. So if I try to write three Bool values, it > uses three bytes, not three bits. The original Binary library, circa 1998, was based on bit-streams rather than bytes. You might be able

[Haskell-cafe] Re: HaXml and the XHTML 1.0 Strict DTD

2008-05-21 Thread Malcolm Wallace
Peter Gammie <[EMAIL PROTECTED]> wrote: > Can you lay out some kind of plan for HaXml? (is 1.13.x now dead, is > 1.19.x stable, ...?) This would help for new-ish projects like mine. The 1.13.x stable branch sees minimal maintenance only, mostly to repair it to build after each new release of gh

[Haskell-cafe] Re: HaXml and the XHTML 1.0 Strict DTD

2008-05-21 Thread Malcolm Wallace
Peter Gammie <[EMAIL PROTECTED]> wrote: >(caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))> > > Using a slightly hacked HaXml v1.13.3, I get this from DtdToHaskell: > > data Table = Table Table_Attrs (Maybe Caption) > (OneOf2 [Col] [Colgroup]) (Maybe Thead) (

Re: [Haskell-cafe] Copy on read

2008-05-10 Thread Malcolm Wallace
If Haskell had uniqueness typing, maybe the compiler could be made to infer when values are used in a unique way. And maybe if the compiler can detect data being used in a unique way, it could code for in-place updates instead of copying, and thereby gain a performance advantage. Uniquene

Re: [Haskell-cafe] Stack vs Heap allocation

2008-05-09 Thread Malcolm Wallace
Edsko de Vries <[EMAIL PROTECTED]> wrote: > > (...(((1+2)+3)+4) ... + 1000) > > which requires stack in proportion to the number of nested parentheses > > Ah, that makes! So does it make sense to talk about "tail recursive > thunks"? Or does the evaluation of thunks always take stack space >

[Haskell-cafe] Re: HaXml and the XHTML 1.0 Strict DTD

2008-04-30 Thread Malcolm Wallace
Peter Gammie <[EMAIL PROTECTED]> wrote: > The most-recent darcs version relies on a newer ByteString than I > have, so it is not easy for me to test it. I believe there was a patch to fix this. Apparently only one version of the bytestring package (0.9.0.1) ever exported the 'join' function, a

Re: [Haskell-cafe] question about GHC and Unicode

2008-04-27 Thread Malcolm Wallace
Ian Lynagh wrote a pure haskell readline implementation a while ago, I think that was Malcolm Wallace. ... and it is part of the readline package! See System.Console.SimpleLineEditor. Needless to say, it is far from perfect, but does give some basic facilities. There are lots of ways

[Haskell-cafe] GSoC accepted projects

2008-04-22 Thread Malcolm Wallace
Haskell.org is pleased to announce that we received 7 funded student slots from Google for this year's Summer of Code. Of the 30 proposals we received, the mentoring group chose the following 7: * GHC API Improvements by Thomas Schilling, mentored by Simon Marlow * Dynamically Loaded Plu

Re: [Haskell-cafe] Laziness and Either

2008-04-21 Thread Malcolm Wallace
But when I did a simple refactoring to use Either, it occurred to me that this switch likely had a negative impact on laziness. Yes, probably. Is this analysis sensible? If so, are there better solutions? I notice that your Maybe-based code is written in a monadic style. If you also

Re: [Haskell-cafe] Installing HaXml

2008-04-15 Thread Malcolm Wallace
"rodrigo.bonifacio" <[EMAIL PROTECTED]> wrote: > > runhaskell Setup.hs configure > > dyld: Library not loaded: GNUreadline.framework/Versions/A/GNUreadline > Referenced from: /usr/local/bin/runhaskell > Reason: image not found > Trace/BPT trap The problem is that 'runhaskell' invokes ghci (t

[Haskell-cafe] [GSoC] student applications deadline approaching

2008-03-26 Thread Malcolm Wallace
Reply-To: haskell-cafe@haskell.org Just to remind students who are interested in Google Summer of Code. Student applications are now open, and the final deadline for submitting your proposals is 2400 UTC, 31st March. http://code.google.com/soc/2008/ Regards, Malcolm _

[Haskell-cafe] haskell.org is accepted to GSoC

2008-03-18 Thread Malcolm Wallace
Google announced last night that Haskell.org has been accepted as a mentoring organisation for this year's Summer of Code (amongst 175 Open Source organisations). http://code.google.com/soc/2008/ The game is on! Student applications open at 1900 UTC on Mon 24th March, and close at 2400 UTC o

Re: [Haskell-cafe] Building HaXML 1.13.3 on Windows fails

2008-03-17 Thread Malcolm Wallace
Dusan Kolar <[EMAIL PROTECTED]> wrote: > I'm trying to build HaXML 1.13.3 on Windows using build.bat > > $ ghc-pkg register pkg.conf > Reading package info from "pkg.conf" ... ghc-pkg.exe: Line 68: The > field main-is was already defined on line 62 > > Taking a look into the pkg.conf says the

Re: [Haskell-cafe] Re: (flawed?) benchmark : sort

2008-03-10 Thread Malcolm Wallace
On 10 Mar 2008, at 08:36, Neil Mitchell wrote: Can whoever picks this up please try the sort code from Yhc in their comparisons. In my benchmarks it ran up to twice as fast as the GHC code. http://darcs.haskell.org/yhc/src/packages/yhc-base-1.0/Data/List.hs I believe the Yhc sort implementatio

[Haskell-cafe] Google summer of code

2008-03-06 Thread Malcolm Wallace
Reply-To: haskell-cafe@haskell.org Google Summer of Code As many of you will already know, Google is running its "Summer of Code" project again this year, and haskell.org is once again going to apply to be a mentoring organisation. Are you a student who would like to earn

[Haskell-cafe] GSoC 2008

2008-02-25 Thread Malcolm Wallace
Google has today announced that they will be running their Summer of Code programme again this year. http://code.google.com/soc/2008/ haskell.org has had many student projects funded by this programme, in 2006 and 2007. Would you like to participate? Either as a student or a mentor? Come a

Re: [Haskell-cafe] Re: hxt memory useage

2008-02-01 Thread Malcolm Wallace
"Rene de Visser" <[EMAIL PROTECTED]> wrote: > Even if you replace parsec, HXT is itself not > incremental. (It stores the whole XML document in memory as a tree, > and the tree is not memory effecient. If the usage pattern of the tree is search-and-discard, then only enough of the tree to satis

Re: [Haskell-cafe] CPP and INLINE pragmas

2008-01-20 Thread Malcolm Wallace
"Adam Langley" <[EMAIL PROTECTED]> writes: > Has anyone a workaround for this, or a way to get the preprocessor to > output a newline? You can use cpphs with the --layout flag, to preserve newlines in macro expansion. http://haskell.org/cpphs For instance, with ghc you need to add the follow

Re: [Haskell-cafe] Newbie question: can laziness lead to space compression?

2008-01-02 Thread Malcolm Wallace
Brian Hurt <[EMAIL PROTECTED]> wrote: > But I was wondering if it is possible that lazy evaluation > could lead to space compression, especially under heavily persistant > usage patterns? > > Note that the benefit isn't *big*- we're talking about 40 words of > memory when the main data structu

Re: [Haskell-cafe] Haskell performance

2007-12-20 Thread Malcolm Wallace
Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: > What would be v helpful would be a regression suite aimed at > performance, that benchmarked GHC (and perhaps other Haskell > compilers) against a set of programs, regularly, and published the > results on a web page, highlighting regressions. Somet

Re: [Haskell-cafe] FFI: "foreign label" declaration

2007-12-11 Thread Malcolm Wallace
Ricardo Herrmann <[EMAIL PROTECTED]> wrote: > a .chs file which uses a "foreign label" syntax, which seems > deprecated, since the parser can't even recognize it: > > foreign label "bdd_reorder_stable_window3" > bdd_reorder_stable_window3 :: FunPtr (BDDManager -> IO ()) > > Is there new syntax

Re: [Haskell-cafe] Re: C Preprocessor

2007-12-06 Thread Malcolm Wallace
> >Is it already a known problem that the preprocessor cannot cope with > >the whole set of possible string declarations? > > > Yes, it is: > > According to the ticket, cpphs (a Haskell-oriented CPP replacement) > does get it right. http://www.cs.york.ac.uk/fp/cpphs After installing, give ghc

Re: [Haskell-cafe] CPP, Leopard and Haskell Objective-C bindings

2007-11-06 Thread Malcolm Wallace
> Is there a CPP written in Haskell and packaged as a library? Yes, cpphs, which can be used either as a stand-alone tool or as a library. http://haskell.org/cpphs Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

Re: [Haskell-cafe] XML parser recommendation?

2007-10-24 Thread Malcolm Wallace
"Yitzchak Gale" <[EMAIL PROTECTED]> wrote: > Another question about HaXML and HXT - > what is the level of XML spec. compliance? In HaXml, I certainly tried pretty hard to match the (draft) XML 1.0 spec, since the library was originally developed for a commercial entity. But that was back in 199

Re: [Haskell-cafe] XML parser recommendation?

2007-10-23 Thread Malcolm Wallace
"Yitzchak Gale" <[EMAIL PROTECTED]> wrote: > > In some usage patterns, it can reduce > > the cost of processing from linear in the size of the document, to a > > constant (the distance into the document to find a particular > > element). > > Oh oh - does that mean that Ketil's original case > (an

Re: [Haskell-cafe] XML parser recommendation?

2007-10-23 Thread Malcolm Wallace
"Yitzchak Gale" <[EMAIL PROTECTED]> wrote: > Henning Thielemann wrote: > > HXT uses Parsec, which is strict. > > Is is strict to the extent that it cannot produce any > output at all until it has read the entire XML document? > That would make HXT (and Parsec, for that matter) > useless for a lar

Re: [Haskell-cafe] Extract source code from literate Haskell (LHS) files

2007-10-06 Thread Malcolm Wallace
> > This is of course very easy to do manually, but does a command line tool > > exist for extracting source code from literate Haskell files? > > Cpphs is the perfect tool to do this. In case the link is not immediately obvious, cpphs has the -unlit flag to remove the literate parts of the file

Re: [Haskell-cafe] Win32 Open GL / Glut Applications

2007-09-21 Thread Malcolm Wallace
> > > http://www.haskell.org/HOpenGL/ > > try http://www.haskell.org/haskellwiki/Opengl ? > > [Sven: could there please be a link from the old home page > to the wiki page, with a recommendation to improve the > latter?] Since this kind of confusion over the HOpenGL documentation is beco

Re: [Haskell-cafe] Library Process (was Building "production stable" software in Haskell)

2007-09-18 Thread Malcolm Wallace
Dominic Steinitz <[EMAIL PROTECTED]> wrote: > I thought the master plan was that less would come with the compiler / > interpreter and the user would install packages using cabal. Ideally, yes. I think a useful model would be GNU/Linux, where there is the Linux kernel, developed by core hackers,

Re: [Haskell-cafe] Observations from ListLike

2007-09-18 Thread Malcolm Wallace
John Goerzen <[EMAIL PROTECTED]> wrote: > * Hugs programs that use cpphs can't use ByteString This bug in cpphs was fixed already, several days ago. > * It would be really nice if QuickCheck supported I/O QuickCheckM gives you monadic test properties, as described in a Haskell Workshop 2002 pap

Re: [Haskell-cafe] Building "production stable" software in Haskell

2007-09-17 Thread Malcolm Wallace
David Roundy <[EMAIL PROTECTED]> writes: > Data.Map is a standardized interface, *not* a standardized implementation. > I'm not saying it's a *good* standardized interface, but it's the only one > we've got. Not so! There is another more venerable interface, namely Data.FiniteMap. That interface

Re: [Haskell-cafe] Haddock/hscolour integration broken on Hackage?

2007-09-10 Thread Malcolm Wallace
"David Menendez" <[EMAIL PROTECTED]> writes: > I was looking at the Data.Binary documentation[1] on Hackage, and I've > noticed some problems with the associated source listings[2]. > > First, none of the "Source" links work. They all refer to fragment IDs > (e.g., "#Binary") that are not defined

Re: [Haskell-cafe] Custom unary operator extension?

2007-09-09 Thread Malcolm Wallace
> On Sun, 9 Sep 2007, Peter Verswyvelen wrote: > > > I find it unfortunate that one can't (I guess) define custom unary > > operators in Haskell. Incidentally, the nhc98 compiler has always permitted the definition of unary operators, as an extension to the language. (It was just more convenient

Re: [Haskell-cafe] can't build haxml under ghc 6.7, says HughesPJ is hidden... but ghc-pkg doesn't say it's hidden...

2007-08-21 Thread Malcolm Wallace
I wrote: > > Just for information, the HaXml darcs repo has recently adopted the > > solution of containing two .cabal files, one for ghc-6.6.x, and the > > other for the split-base packages (>=ghc-6.7). Thomas Hartman <[EMAIL PROTECTED]> wrote: > $ runghc Setup.hs configure > Setup.hs: Multiple d

Re: [Haskell-cafe] can't build haxml under ghc 6.7, says HughesPJ is hidden... but ghc-pkg doesn't say it's hidden...

2007-08-10 Thread Malcolm Wallace
Stefan O'Rear <[EMAIL PROTECTED]> wrote: > When you build a package, Cabal passess the -hide-all-packages option > to GHC, which prevents the package from using any installed packages > other than the ones explicitly listed in the Build-Depends: field. > > For now, we just edit .cabal files when

Re: [Haskell-cafe] Maintaining the community

2007-07-16 Thread Malcolm Wallace
"Alex Queiroz" <[EMAIL PROTECTED]> wrote: > This is so much true. It has the effect of disguising Haskell as > a PhD-only language. And what would be wrong with Haskell being a PhD-only language, if it were true? OK, so I'm not genuinely suggesting that you must possess or be studying for a

Re: [Haskell-cafe] Maintaining the community

2007-07-13 Thread Malcolm Wallace
Ian Lynagh <[EMAIL PROTECTED]> wrote: > I think the number of posts in the wrong place would be > lower if these were more conventionally named (although there aren't a > lot of them anyway). There are very few inappropriate posts to the haskell@ list. I very much doubt that the list names are a

Re: [Haskell-cafe] Maintaining the community

2007-07-13 Thread Malcolm Wallace
Lutz Donnerhacke <[EMAIL PROTECTED]> wrote: > Switch to Usenet. The new haskell group will die, if the traffic will > not increase. If anything, Usenet is even worse than mailing lists for volume, especially of spam. Also, very few sites maintain their nntp servers adequately these days - e.g.

Re: [Haskell-cafe] Maintaining the community

2007-07-13 Thread Malcolm Wallace
[EMAIL PROTECTED] (Donald Bruce Stewart) writes: > As we sit here riding the Haskell wave: > > http://www.cse.unsw.edu.au/~dons/tmp/cafe.png > > with nearly 2000 (!) people reading haskell-cafe@, perhaps its time to > think some more about how to build and maintain this lovely Haskell > comm

Re: [Haskell-cafe] A very nontrivial parser

2007-07-05 Thread Malcolm Wallace
Andrew Coppin <[EMAIL PROTECTED]> wrote: > My goal is to be able to stack multiple parsers one on top of the > other - but be able to *change* the stack half way through parsing if > needed. > > Essentially, I have the "stacked" function, where if I do > > x <- stacked foo parser1 bar parser2

Re: [Haskell-cafe] Parsers are monadic?

2007-07-04 Thread Malcolm Wallace
"Claus Reinke" <[EMAIL PROTECTED]> wrote: > (b) i like my combinator grammars to be reversible, so that a single > grammar specification can be used for both parsing and > unparsing/pretty-printing. that means i have to define the > details myself anyway. Oh cool - this is something

Re: [Haskell-cafe] Abstraction leak

2007-07-04 Thread Malcolm Wallace
Andrew Coppin <[EMAIL PROTECTED]> wrote: > While we're on the subject... am I the first person to notice that > Haskell doesn't appear to have much support for fiddling with streams > of bits? See "The Bits Between The Lambdas: Binary Data in a Lazy Functional L

<    1   2   3   4   5   >