Re: haskell xml parsing for larger files?

2014-02-20 Thread Chris Smith
ain = getContents >>= putStr . renderTags . flattenTree . tagTree . > parseTags > > which also ends with the getMBlock error. > Only "renderTags . parseTags" works fine (like the hexpat SAX parser). > > Why should tagsoup be better suited for building trees from larg

Re: haskell xml parsing for larger files?

2014-02-20 Thread Chris Smith
Have you looked at tagsoup? On Feb 20, 2014 3:30 AM, "Christian Maeder" wrote: Hi, I've got some difficulties parsing "large" xml files (> 100MB). A plain SAX parser, as provided by hexpat, is fine. However, constructing a tree consumes too much memory on a 32bit machine. see http://trac.inform

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-28 Thread Chris Smith
+1 While it might work for teaching, it's not reasonable to ask software developers who want to write useful software to depend on haskell98 instead of base if they want more relevant types. I'd go one step further and say that we're not just talking about whether someone is an "advanced" user ei

Re: A language extension for dealing with Prelude.foldr vs Foldable.foldr and similar dilemmas

2013-05-27 Thread Chris Smith
I agree that it would be unfortunate to complicate the Prelude definitions of foldr and such by generalizing to type classes like Foldable. This proposal seems attractive to me as a way to reconcile abstraction when it's needed, and simplicity for beginners. However, it does seem like a common pa

Re: Dynamic libraries by default and GHC 7.8

2012-12-04 Thread Chris Smith
I'm curious how much of the "compile twice" situation for static and dynamic libraries could actually be shared. Even if it's not likely to be implemented in the next year or two, IMO it would make a big difference if it were feasible to generate both static and dynamic libraries at the same time

Re: Call to arms: lambda-case is stuck and needs your help

2012-07-10 Thread Chris Smith
writing out the longhand version of "proc x -> case x of". -- Chris Smith ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Call to arms: lambda-case is stuck and needs your help

2012-07-09 Thread Chris Smith
Right, it seems to me that there are basically three reasonable proposals here: 1. "\ of" with multiple arguments. This is consistent with existing layout, and seems like a nice generalization of lambda syntax. 2. "case of" with a single argument. This is consistent with existing layout, and see

Re: [Haskell-cafe] Call to arms: lambda-case is stuck and needs your help

2012-07-06 Thread Chris Smith
Whoops, my earlier answer forgot to copy mailing lists... I would love to see \of, but I really don't think this is important enough to make case sometimes introduce layout and other times not. If it's going to obfuscate the lexical syntax like that, I'd rather just stick with \x->case x of. On Ju

Re: thoughts on the record update problem

2012-03-08 Thread Chris Smith
jor concern. But it seems unlikely that claim is true, since in the very same email you express what looks like a pretty serious concern about the semantics that will be exposed to users (namely, the need for a new kind of type annotation). --

Re: thoughts on the record update problem

2012-03-08 Thread Chris Smith
g about pretty fundamental questions of semantics of records and labels, and the way to settle fundamental questions about the record system we hope to be using in 10 years time is not based on who has time after work for GHC hacking this month. -- Chris Smith __

Re: Composition operator [was: Re: Records in Haskell]

2012-01-13 Thread Chris Smith
On Jan 12, 2012 9:18 PM, "Morten Brodersen" < morten.broder...@constrainttec.com> wrote: > > Unfortunately most unix/windows/tools/source > controls/editors out there are Ascii only. This is probably not true. I'm among the most annoyed people at this Unicode trend... but the problem is in text e

Re: Records in Haskell

2011-12-20 Thread Chris Smith
On Tue, Dec 20, 2011 at 5:57 PM, Matthew Farkas-Dyck wrote: > Another thought: > Perhaps bang as record selection operator. It would avoid further > corner cases of dot, and it's not unprecedented in Haskell (e.g. > Data.Map.!). We already have weird syntax rules for dot, and the proposed change

Re: mkTopLevEnv: not interpreted main:Main

2011-10-06 Thread Chris Smith
Simon, thank you! That makes sense then. I'd missed the fact that including the entire top-level scope requires the module to be interpreted. I suppose the "right" thing to do would be to not do that; but sadly, that seems to also mean that modules without a 'module Foo where' only export the si

Re: mkTopLevEnv: not interpreted main:Main

2011-10-04 Thread Chris Smith
Thanks everyone for the help! I'm working now on reproducing this with HEAD, and if I do, I'll write a ticket. On the other hand, it only seems to be an issue when one is recompiling a file within one second of the first attempt, and Felipe's workaround of deleting the .hi and .o files fixes it e

RE: mkTopLevEnv: not interpreted main:Main

2011-10-04 Thread Chris Smith
Here's a version with fewer flags/features, that acts the same. I tried removing the loading of an external module, and that did *not* exhibit the problem. It also does *not* fail when the file name is different each time, so the fact that it's the same file, A.hs, each time is somehow part of th

RE: mkTopLevEnv: not interpreted main:Main

2011-10-04 Thread Chris Smith
Here's a test case: the complete source code is in the following. I compile it with: ghc -package ghc --make Test.hs The GHC version is cdsmith@godel:~$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.2.1 Then run the application several times in a row. If

RE: mkTopLevEnv: not interpreted main:Main

2011-10-03 Thread Chris Smith
Thanks, Simon. I will work on building a smaller complete test case that reproduces the issue, and I could have done a better job of at least pointing out the relevant code for you. Sorry about that. I'm definitely not building my own IIModule. The use of the GHC API is as follows. (I'm fairly

mkTopLevEnv: not interpreted main:Main

2011-10-01 Thread Chris Smith
ing the Run button in the web app. If there's anything I can do to get more information, I'm happy to do so as well. I'm not terribly familiar with the flags or options for GHC, as I've never done this before. -- Chris Smith __

Re: GHCi, version 6.10.1 crashes without message

2009-01-13 Thread Chris Smith
I reproduced the error on my setup (GHC 6.10.1 on WS2003), and received SEH exception 0xC0FD, which is STATUS_STACK_OVERFLOW "A new guard page for the stack cannot be created". It looks like something is overflowing the OS stack or improperly bumping the guard page at the end of the allocated s