Re: [Haskell-cafe] Haddock Problem

2010-06-15 Thread malcolm.wallace
I haven't been following closely, but how did you install haddock?  From a binary dist?  Is it possible that one of the Windows binary dists has a "baked-in" location for something on the E: drive, which existed on the packager's machine but not on the final installed machine?Regards, MalcolmOn

Re: [Haskell-cafe] src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-21 Thread malcolm.wallace
Judging solely by the error message (non-exhaustive patterns in 'white'), it sounds like it could be a bug in HaXml that was fixed in a patch of April 2009.  Try using a more recent release of HaXml.Regards,    Malcolm ___ Haskell-Cafe mailing list Haskel

Re: [Haskell-cafe] src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-21 Thread malcolm.wallace
Ouch... I check the version and realized that Debian/unstable has version 1.13 of haxml. Malcolm, can you comment this Debian changelog entry with which Debian package was downgraded from 1.19 to 1.13: I know nothing about Debian packaging, but it sounds like there are other packages that depend o

Re: [Haskell-cafe] Why is toRational a method of Real?

2010-08-05 Thread malcolm.wallace
It's sad because the class alias proposal was dropped from Haskell' two years ago, isn't it ? Haskell' is an ongoing process of language revision.  ClassAliases did not get into Haskell 2010, but it could certainly be adopted in 2011 or 2012, if there were consensus support for it.  Usually, propo

Re: [Haskell-cafe] Haskell/JDK/tail-calls etc. (please vote on bug No. 6804517)

2010-09-20 Thread malcolm.wallace
Compiling haskell for the JVM has been done before, several times.  Sometimes even inside GHC.See for instance    http://portal.acm.org/citation.cfm?id=968549    http://wwwspringerlink.com/content/w81yd3fljbrevuje/    http://www.mail-archive.com/hask...@haskell.org/msg06673.htmlRegards,Malcolm

Re: [Haskell-cafe] Hackage is down?

2012-07-12 Thread malcolm.wallace
The machine is undergoing disk checks after a hard reboot.  Hopefully it will be back online soon.Regards, MalcolmOn Jul 12, 2012, at 03:28 PM, Edward Amsden wrote:http://www.downforeveryoneorjustme.com/hackage.haskell.org -- Edward Amsden Student Computer Science Rochester Institute of Tech

Re: [Haskell-cafe] tplot (out of memory)

2012-10-18 Thread malcolm.wallace
Did you ever solve this?  I have a similar message ( user error (out of memory) ) arising from a different app (not tplot) that uses the Haskell Chart library (and cairo underneath).  On some linux machines, it crashes, on others it works fine.  I can find no environment differences between the mac

Re: [Haskell-cafe] "Best practices" for Text

2010-11-08 Thread malcolm.wallace
For starters, I'm considering writing a polyparse [1] instance for Text. However, even with the current Bytestring instances for polyparse there seems to be an emphasis on character-based parsing. Polyparse is not very character-oriented at all;  I tend to write a separate lexer, and then write th

Re: [Haskell-cafe] combined parsing & pretty-printing

2011-01-26 Thread malcolm.wallace
Tillmann Rendel and Klaus Ostermann. "Invertible syntax descriptions: Unifying parsing and pretty printing".Haskell Symposium 2010.Regards,MalcolmOn 26 Jan, 2011,at 04:22 PM, Ozgur Akgun wrote:Dear Café,I working on a DSL represented by a algebraic data type with many constructors. I can write

Re: [Haskell-cafe] GPL License of H-Matrix and prelude numeric

2011-01-26 Thread malcolm.wallace
> Installing executable(s) in /home/ketil/.cabal/bin > Executable 'foo' incorporates components with the following licenses: > GPL BSD3 LGPL > Executable 'bar' ... Furthermore, the example above could be greatly shortened by just saying "GPL". Complying with the terms of the GPL automatically i

[Haskell-cafe] bug in Prelude.words?

2011-03-28 Thread malcolm.wallace
Does anyone else think it odd that Prelude.words will break a string at a non-breaking space?Prelude> words "abc def\xA0ghi"["abc","def","ghi"]I would have expected this to be the obvious behaviour: Prelude> words "abc def\xA0ghi"["abc","def\160ghi"]Regards,Malcolm _

Re: [Haskell-cafe] bug in Prelude.words?

2011-03-28 Thread malcolm.wallace
Consider an HTML page with that "sentence" displayed on it. If you ask the viewer of the page how many words are in the sentence, then surely you will get the answer 3? But what about the author?  Surely there is no reason to use a non-breaking space unless they intend it to mean that the character

Re: [Haskell-cafe] bug in Prelude.words?

2011-03-28 Thread malcolm.wallace
I think it's predictable, isSpace (which words is based on) is based on generalCategory, which returns the proper Unicode category:λ> generalCategory '\xa0' SpaceI agree, and I also agree that it would make sense the other way (not breaking on non-breaking spaces).  Perhaps it would be a good idea

Re: [Haskell-cafe] Encoding of Haskell source files

2011-04-04 Thread malcolm.wallace
BOM is not part of UTF8, because UTF8 is byte-oriented.  But applications should be prepared to read and discard it, because some applications erroneously generate it.Regards, MalcolmOn 04 Apr, 2011,at 02:09 PM, Antoine Latter wrote:On Mon, Apr 4, 2011 at 7:30 AM, Max Bolingbroke

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-28 Thread malcolm.wallace
Unfortunately, sharing a build directory between separate repositories does not work. After a build from one repository, all the outputs from that build will have modification times more recent than all the files in the other repository. Then I suggest that your build tools are broken.  Rebuilding

Re: [Haskell-cafe] How on Earth Do You Reason about Space?

2011-05-31 Thread malcolm.wallace
ad a) heap consumption is too high for two reasons: firstly, the actual data I care about is much less than there's data on the heap. Secondly, about half the heap space is in LAG state. Here are profiles that will illustrate this: http://imgur.com/wBWmJ&XN1mW

Re: [Haskell-cafe] How on Earth Do You Reason about Space?

2011-06-01 Thread malcolm.wallace
Just out of interest, did you try reading the input as plain old Strings?  They may be unfashionable these days, and have their own type of badness in space and time performance, but might perhaps be a win over ByteStrings for extremely large datasets.Regards, MalcolmOn 01 Jun, 2011,at 02:49 PM

Re: [Haskell-cafe] Why aren't there anonymous sum types in Haskell?

2011-06-22 Thread malcolm.wallace
Why not just do what we do for tuples? Define a bunch of generic types up front: data Choice2 a b = OneOf2 a | TwoOf2 b data Choice3 a b c = OneOf3 a | TwoOf3 b | ThreeOf3 c The module Text.XML.HaXml.OneOfN defines these types up to size 20.The package HaXml also comes with a small command-line dr

Re: [Haskell-cafe] writing a good Setup.hs is *hard* (was: broken on install encoding 0.6.6)

2011-08-18 Thread malcolm.wallace
On 17 Aug, 2011,at 03:11 PM, Rogan Creswick wrote:encoding-0.6.6 uses it's own source during the build process! It actually has to be partially compiled before the build tool can build encoding (!). I'm *amazed* that this actually works at all (impressed, too),  This is by design.  It is intended

Re: [Haskell-cafe] Reading pcap

2011-10-12 Thread malcolm.wallace
On 12 Oct, 2011,at 04:39 PM, mukesh tiwari wrote: When i run this program . it does not produce any thing and when i press ^C ( CTRL - C ) it produce output.  This is because you use hGetLine, which blocks until it sees either a newline character, or EOF.Regards,    Malcolm ___

Re: [Haskell-cafe] [Alternative] change some/many semantics

2011-12-15 Thread malcolm.wallace
On 15 Dec, 2011,at 03:58 AM, Gregory Crosswhite wrote:This is even more out there than my previous posts, but the following just occurred to me:  is it absolutely necessary that some/many have produced the entire list of results before returning? No, it is not absolutely necessary. Couldn't we cha