Re: [Haskell-cafe] Is protocol-buffers package maintainer reachable?

2012-04-24 Thread Yitzchak Gale
Johan Tibell wrote: If Chris is indeed out of the loop we should find a new maintainer. Mark and I are also interested in the future of protocol buffers in Haskell. Also, Chris is the maintainer of some regex packages that are in the Haskell Platform. -Yitz

[Haskell-cafe] SOE code on Mac OS X Lion

2012-04-24 Thread N. Raghavendra
I am trying to use code from the book `The Haskell School of Expression' on an iMac with Mac OS X Lion. I have installed the latest version of Haskell Platform (2011.4.0.0 64bit). I then followed step 1 on the Web page http://www.cs.yale.edu/homes/hudak/SOE/software1.htm, and did `cabal install

Re: [Haskell-cafe] ANN: signed-multiset-0.1

2012-04-24 Thread Stefan Holdermans
Sjoerd, I have a hard time believing you have implemented the semantics that people have agreed on to be a sensible semantics for hybrid sets. Noted. Cheers, Stefan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Is protocol-buffers package maintainer reachable?

2012-04-24 Thread Henk-Jan van Tuyl
On Mon, 23 Apr 2012 16:26:11 +0200, Aleksey Khudyakov alexey.sklad...@gmail.com wrote: On 23.04.2012 17:01, Paul Graphov wrote: Hello Cafe! I am using protocol-buffers and hprotoc packages but they fail to compile with recent GHC due to trivial errors. Hackage names Christopher Edward

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread Gregg Lebovitz
On 4/23/2012 10:17 PM, Brandon Allbery wrote: On Mon, Apr 23, 2012 at 17:16, Gregg Lebovitz glebov...@gmail.com wrote: On 4/23/2012 3:39 PM, Brandon Allbery wrote:

Re: [Haskell-cafe] Offer to mirror Hackage

2012-04-24 Thread Duncan Coutts
On Thu, 2012-04-19 at 11:12 -0400, Ryan Newton wrote: Hello all, Right now I'm trying to answer a simple question: * Would the current Haskell.org / hackage infrastructure benefit from the donation of a dedicated VM with good bandwidth/uptime? Whoever already knows

Re: [Haskell-cafe] Offer to mirror Hackage

2012-04-24 Thread Ryan Newton
There's two options I think: 1. a machine for the central hackage server, 2. a machine for doing package builds The former will require more organisation, partly because we need the haskell.org people to have some degree of control over the system. The latter is easier because the

Re: [Haskell-cafe] Offer to mirror Hackage

2012-04-24 Thread Ryan Newton
I wonder if this could get to the point where it could be done seti-at-home style, farmed out via a VM image. That is people would run the image to provide resources (and geographic distribution) to the build server cloud. Maybe they get a fast local mirror as a reward. If it were every

[Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeff Shaw
Hello, Up until now I've been using Aeson, but I've found that its number type isn't going to work for me. I need to use decimal numbers while avoiding conversions from and to Double, which Aeson doesn't allow. There are quite a few more JSON libraries for Haskell, which all appear to use

[Haskell-cafe] I am having trouble with the type declaration for creating an identity matrix.

2012-04-24 Thread KC
initIdentityMat :: Int - ST s (STUArray s (Int,Int) ((Int, Int), Double)) initIdentityMat m = newListArray ((1,m),(1,m)) ([((i,j), if i == j then 1.0 else 0.0) | i - [1..m], j - [1..m]] :: [((Int,Int), Double)]) Doesn't seem to compile, nor do minor variations of the type declaration. -- --

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeremy Shaw
Hello, I could be wrong, but I think the only real numeric type in javascript is 'Number' which is a floating point number? Which is why Aeson and others insist on converting everything to a Double or other Rational number? - jeremy On Tue, Apr 24, 2012 at 3:46 PM, Jeff Shaw shawj...@msu.edu

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeff Shaw
Hi Jeremy, Sorry if I was unclear. Rational is acceptable to me as the result of a JSON parse, but Double (which Aeson uses), is not. Also acceptable would be Data.Decimal.Decimal, or maybe one of the types from Data.Fixed. JSON doesn't specify a data type for numbers, only a format. Jeff

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Alvaro Gutierrez
JSON numbers are not equivalent to JavaScript/ECMAScript numbers, even if they are nominally related; the key differences are that in JSON, numeric literals: (a) can have any non-zero number of digits, effectively making JSON numbers both unbounded and arbitrarily precise (though actual

Re: [Haskell-cafe] I am having trouble with the type declaration for creating an identity matrix.

2012-04-24 Thread Daniel Peebles
Your problem is that you're including the (i, j) in your array element type, when you really only want it to be in your index type (I assume). This would not normally be an issue, but an unboxed array doesn't work on an element type of ((Int, Int), Double). You might consider instead making a new

Re: [Haskell-cafe] I am having trouble with the type declaration for creating an identity matrix.

2012-04-24 Thread Kevin Charter
On Tue, Apr 24, 2012 at 3:20 PM, KC kc1...@gmail.com wrote: initIdentityMat :: Int - ST s (STUArray s (Int,Int) ((Int, Int), Double)) initIdentityMat m = newListArray ((1,m),(1,m)) ([((i,j), if i == j then 1.0 else 0.0) | i - [1..m], j - [1..m]] :: [((Int,Int), Double)]) Doesn't seem to

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeremy Shaw
Hello, Have you emailed Bryan O'Sullivan and explained your problem? It sounds to me like choosing Double was just the wrong choice and is a design flaw that should be fixed in Aeson? There are far too many JSON libraries on hackage already, and what would be really useful (to me) is for the

[Haskell-cafe] Multi-site haddock documentation with proper links?

2012-04-24 Thread Ryan Newton
Hello cafe, For various reasons, some packages don't build documentation on hackage: http://hackage.haskell.org/package/accelerate Therefore I want to locally install documentation for a set of packages like this and host them on a separate website. I want all of these ~ten packages'

Re: [Haskell-cafe] Multi-site haddock documentation with proper links?

2012-04-24 Thread Ryan Newton
This is sort of related to ticket #130: http://trac.haskell.org/haddock/ticket/130 And this one seems to hint at a solution to the problem in the more extensive syntax for --read-interface. http://hackage.haskell.org/trac/ghc/ticket/3810 (My local haddock-2.10.0 --help doesn't mention

Re: [Haskell-cafe] ANN: signed-multiset-0.1

2012-04-24 Thread wren ng thornton
On 4/23/12 9:18 AM, Stefan Holdermans wrote: Sjoerd, This is not just about map, but it also a problem for the Monoid instance. You are basically adding an extra identity element, 0, to the max monoid, which works but is weird. Still that's how union is typically defined for hybrid sets.

Re: [Haskell-cafe] Is protocol-buffers package maintainer reachable?

2012-04-24 Thread wren ng thornton
On 4/23/12 10:26 AM, Aleksey Khudyakov wrote: On 23.04.2012 17:01, Paul Graphov wrote: Hackage names Christopher Edward Kuklewicz as their maintainer. I've sent him patches more than a month ago but neiter they were applied nor I got any response. [...] I've too tried to contact him almost

Re: [Haskell-cafe] I am having trouble with the type declaration for creating an identity matrix.

2012-04-24 Thread KC
Thank you. One is ONLY supposed to supply the list elements for newListArray which fill the array in increasing order. On Tue, Apr 24, 2012 at 3:21 PM, Kevin Charter kchar...@gmail.com wrote: On Tue, Apr 24, 2012 at 3:20 PM, KC kc1...@gmail.com wrote: initIdentityMat :: Int - ST s (STUArray

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/23/12 11:39 AM, Gregg Lebovitz wrote: On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow social practice. Wren, I am new to Haskell and not aware of all of the conventions.

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/24/12 9:59 AM, Gregg Lebovitz wrote: The question of how to support rapid innovation and stable deployment is not an us versus them problem. It is one of staging releases. The Linux kernel is a really good example. The Linux development team innovates faster than the community can absorb

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread wren ng thornton
On 4/23/12 3:06 PM, Alvaro Gutierrez wrote: I see. The first thing that comes to mind is the notion of module granularity, which of course is subjective, so whether a single module or multiple ones should handle e.g. doubles and integrals is a good question; are there guidelines as to how those

Re: [Haskell-cafe] Correspondence between libraries and modules

2012-04-24 Thread Henk-Jan van Tuyl
On Wed, 25 Apr 2012 05:44:28 +0200, wren ng thornton w...@freegeek.org wrote: On 4/23/12 11:39 AM, Gregg Lebovitz wrote: On 04/23/2012 12:03 AM, wren ng thornton wrote: However, until better technical support is implemented (not just for GHC, but also jhc, UHC,...) it's best to follow