[Haskell-cafe] Re: Haskellers.com idea: strike forces

2010-10-30 Thread Heinrich Apfelmus
Michael Snoyman wrote: In the recent discussion about the status of email support in Haskell, the idea of strike forces to tackle these big problems came up. I think one dilemma people face when trying to coordinate such a venture is the logistics: where to organize, how to advertise it, where

Re: [Haskell-cafe] Edit Hackage

2010-10-30 Thread Daniel Fischer
On Saturday 30 October 2010 03:42:27, Ivan Lazar Miljenovic wrote: On 30 October 2010 12:22, Lauri Alanko l...@iki.fi wrote: On Thu, Oct 28, 2010 at 01:55:12PM -0700, Don Stewart wrote: The number of subscribers to the Haskell Reddit, for example, is double the -cafe@, and there are

[Haskell-cafe] Re: Haddock API and .haddock interface files questions

2010-10-30 Thread David Waern
2010/10/26 Claus Reinke claus.rei...@talk21.com: Some questions about Haddock usage: 1. Haddock executable and library are a single hackage package,   but GHC seems to include only the former (haddock does not   even appear as a hidden package anymore). Is that intended? Yes, I think that's

Re: [Haskell-cafe] Re: Monads and Functions sequence and sequence_

2010-10-30 Thread Ben Millwood
The actual, entire, complete definitions of sequence and sequence_ are (or at least, could be): sequence [] = return [] sequence (m:ms) = do x - m xs - sequence ms return (x:xs) -- or, equivalently: sequence' = foldr (liftM2 (:)) (return []) sequence_ [] = return () sequence_

Re: [Haskell-cafe] vector-space and standard API for vectors

2010-10-30 Thread Henning Thielemann
wren ng thornton schrieb: On 10/22/10 8:46 AM, Alexey Khudyakov wrote: Hello everyone! It's well known that Num Co type classes are not adequate for vectors (I don't mean arrays). I have an idea how to address this problem. Conal Elliott wrote very nice set of type classes for vectors.

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 86, Issue 63

2010-10-30 Thread Arnaud Bailly
Hello John, Thanks for your detailed answer. I finally understood this behaviour and got to the point where I need something like enumPair. About the scala implementation, it was this same blog post that arose my interest in iteratees :-) Regards, Arnaud On Wed, Oct 27, 2010 at 5:26 PM, John Lato

[Haskell-cafe] commutativity

2010-10-30 Thread Patrick Browne
Hi, Below are two questions on commutative operations in Haskell. infixl 5 `com` com :: Int - Int - Int x `com` y = (x + y) commutative com a b = (a `com` b) == (b`com`a) -- 1 + 3 == 3 + 1 -- This gives true by virtue of the value of LHS and RHS being equal after the plus operation -- Question

[Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello, All of a sudden, the package regex-posix-0.94.2 failed to link after i installed a couple of other packages (http, json). When I try to reinstall it, I got the folowing errors: D:\projets\crete1941cabal install --global --reinstall --enable-documentation regex-posix-0.94.2 Resolving

Re: [Haskell-cafe] vector-space and standard API for vectors

2010-10-30 Thread Stephen Tetley
On 30 October 2010 11:07, Henning Thielemann schlepp...@henning-thielemann.de wrote: Looks like you are about to re-implement numeric-prelude. :-) Ah, but Numeric-Prelude is huge though[*]. DavidA complains in the recent Cafe thread Decoupling type classes (e.g. Applicative)? that the Num

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Stephen Tetley
Possibly related to this bug? http://trac.haskell.org/haskell-platform/ticket/137 http://www.haskell.org/pipermail/haskell-cafe/2010-August/082141.html I don't use cabal install, but maybe you could try just re-installing regex-posix, then once its working reinstall the dependencies. That seemed

Re: [Haskell-cafe] fundata1 -- Karmic Social Capital Benchmark and Shootout

2010-10-30 Thread Johan Tibell
On Fri, Oct 29, 2010 at 1:17 PM, Daryoush Mehrtash dmehrt...@gmail.com wrote: In the lessons you say: Haskell proved too slow with String Map, so we ended up interning strings and working with an IntMap and a dictionary to disintern back to strings as a last step.  Daniel Fisher was

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Ben Millwood
On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, All of a sudden, the package regex-posix-0.94.2 failed to link after i installed a couple of other packages (http, json). When I try to reinstall it, I got the folowing errors: D:\projets\crete1941cabal

[Haskell-cafe] ANNOUNCE: darcs 2.5

2010-10-30 Thread Reinier Lamers
Hi all, The darcs team is proud to announce the release of darcs 2.5. Darcs 2.5 contains many improvements over the 2.4 series. Most notable are the performance improvements in record and pull and the --bisect option for trackdown. The easiest way to install darcs 2.5 is using the Haskell

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
Victor Oliveira schrieb: Hi Cafe, I really liked the new colors of haskell theme, but... Is really red a good color for links? At least for me, red links looks like broken or already visited ones. And the worst is hackage docs. It is really eye tiring to read. It's just a thought.

Re: [Haskell-cafe] type class design

2010-10-30 Thread Uwe Schmidt
Hi Ivan, Another possible argument: large type classes can look daunting for both implementors and users, even if only one or two methods need to be defined for a minimal instantiation (I'm tring to work out what to do here myself, as I have some typeclasses that for efficiency reasons it

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
Sebastian Fischer schrieb: Maybe we can keep at least the docs without red links. Pick the Classic style in the style menu. It will remember your choice. I don't see a style menu. Does it require JavaScript? I find it still strange, that the unusal style is the default.

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Daniel Fischer
On Saturday 30 October 2010 13:51:25, Henning Thielemann wrote: Sebastian Fischer schrieb: Maybe we can keep at least the docs without red links. Pick the Classic style in the style menu. It will remember your choice. I don't see a style menu. I do, top right, next to Index. In

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
On Sat, 30 Oct 2010, Daniel Fischer wrote: I do, top right, next to Index. In seamonkey, though, it's sometimes half hidden and displayed below the Source resp hackageDB links. Does it require JavaScript? It seems so. If I disallow scripts for haskell.org, I don't see it either. If I

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello Ben, Thanks for your answer. What is strange is that I did not change anything wrt include dirs or gcc or whatever... I am using --global because I noticed ghc-pkg list gives me two locations for regex-xxx packages. I removed everything from --user though. I will try to reinstall regex-xxx.

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello, I managed to fix this issue reinstalling regex-posix (with a higher version) and then reinstall regex-compat (broken through the reinstall). Thanks a lot for the pointer, Arnaud On Sat, Oct 30, 2010 at 1:08 PM, Stephen Tetley stephen.tet...@gmail.com wrote: Possibly related to this bug?

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Sebastian Fischer
On Oct 30, 2010, at 9:15 PM, Henning Thielemann wrote: To me it would make more sense if users could configure the colors of links in their browsers, like they configure fonts and font sizes. Most browsers support user style sheets: google.com/search?q=user+style +sheet Most people who

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Daniel Fischer
On Saturday 30 October 2010 14:15:58, Henning Thielemann wrote: On Sat, 30 Oct 2010, Daniel Fischer wrote: I do, top right, next to Index. In seamonkey, though, it's sometimes half hidden and displayed below the Source resp hackageDB links. Does it require JavaScript? It seems so. If

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Tillmann Rendel
Henning Thielemann wrote: If I enable JavaScript in Konqueror, I still see no style menu. However I would like to get it without JavaScript. It can certainly be achieved using a cookie. Both stylesheets are linked to from the text of the HTML files: link href=ocean.css rel=stylesheet

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Daniel Fischer
On Saturday 30 October 2010 14:49:01, Daniel Fischer wrote: Both look fine to me. Oh and btw. Regarding the topic of this thread, I don't see red links in the new theme, they're an orange-ish brown here. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Monads and Functions sequence and sequence_

2010-10-30 Thread Roman Cheplyaka
* Mark Spezzano mark.spezz...@chariot.net.au [2010-10-30 15:37:30+1030] Can somebody please explain exactly how the monad functions sequence and sequence_ are meant to work? The others in this thread have already explained how these functions work, so I'll just give an example how they are

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
On Sat, 30 Oct 2010, Tillmann Rendel wrote: Both stylesheets are linked to from the text of the HTML files: link href=ocean.css rel=stylesheet type=text/css title=Ocean / link href=xhaddock.css rel=alternate stylesheet type=text/css title=Classic / Firefox uses this information to

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Daniel Fischer
On Saturday 30 October 2010 15:09:39, Henning Thielemann wrote: On Sat, 30 Oct 2010, Tillmann Rendel wrote: Both stylesheets are linked to from the text of the HTML files: link href=ocean.css rel=stylesheet type=text/css title=Ocean / link href=xhaddock.css rel=alternate stylesheet

[Haskell-cafe] Re: cabal mystery (#562?)

2010-10-30 Thread Maciej Piechotka
On Thu, 2010-10-28 at 15:33 +0200, Daniel Fischer wrote: On Thursday 28 October 2010 15:08:09, Conor McBride wrote: Any tips to keep the gremlins at bay gratefully appreciated. Don't feed after midnight, don't get them wet, I think were the tips. Don't expose to bright light. Regards

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Tillmann Rendel
Henning Thielemann wrote: Firefox uses this information to populate a menu (View | Stylesheet) with the following choices: - no style - Ocean - Classic No need for JavaScript or cookies. This would be optimal for me, if it would work this way. From the answers I understood that the style

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Mark Lentczner
Some notes on the Haddock re-design: 1) HTML supports the concept of alternate style sheets. If present, then the idea was that browsers would give the user the choice, somewhere, to choose among them. While Firefox does this (View Page Style), and I'm told that Opera (View Style), and

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
On Sat, 30 Oct 2010, Tillmann Rendel wrote: Yes, the body of the document contains an additional style menu, so on well-behaving browsers, there are two style menus. See screenshot at http://www.informatik.uni-marburg.de/~rendel/style-menu.png Wow, I have also such a menu item Ansicht

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
On Sat, 30 Oct 2010, Mark Lentczner wrote: 5) It does not make sense for users to configure colors or fonts for web sites any more than it would for magazines or books. For fancy layouts we have PDF. For me, HTML is an online format that shall be as adaptive as possible to font size, window

Re: [Haskell-cafe] Edit Hackage

2010-10-30 Thread Ketil Malde
Daniel Fischer daniel.is.fisc...@web.de writes: On Saturday 30 October 2010 03:42:27, Ivan Lazar Miljenovic wrote: On 30 October 2010 12:22, Lauri Alanko l...@iki.fi wrote: On Thu, Oct 28, 2010 at 01:55:12PM -0700, Don Stewart wrote: The number of subscribers to the Haskell Reddit, for

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Ross Paterson
On Sat, Oct 30, 2010 at 05:26:33PM +0200, Henning Thielemann wrote: Two notes on the Classic style: The package field names like Version, Dependencies, License are centered, which was not the case in the original style. Also in the original style the table cells had a grey background, what I

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Henning Thielemann
On Sat, 30 Oct 2010, Ross Paterson wrote: On Sat, Oct 30, 2010 at 05:26:33PM +0200, Henning Thielemann wrote: Two notes on the Classic style: The package field names like Version, Dependencies, License are centered, which was not the case in the original style. Also in the original style the

Re: [Haskell-cafe] Edit Hackage

2010-10-30 Thread C. McCann
On Sat, Oct 30, 2010 at 11:34 AM, Ketil Malde ke...@malde.org wrote: Stack Overflow and Reddit are at least improvements over the traditional web forums, starting to acquire some of the features Usenet had twenty years ago.  Much like Planet-style meta-blogs and RSS syndication makes it

Re: [Haskell-cafe] Red links in the new haskell theme

2010-10-30 Thread Ross Paterson
On Sat, Oct 30, 2010 at 06:39:00PM +0200, Henning Thielemann wrote: It's still vertically centered, which makes it difficult to see, e.g. where the dependency list starts and where it ends if it is several lines long. Not any more. ___ Haskell-Cafe

[Haskell-cafe] How can we make Haskell-Cafe scale? (was: Re: Edit Hackage)

2010-10-30 Thread Sterling Clover
There's been some grumbling about users migrating from -cafe to Reddit and Stack Overflow in particular. First, as Don has pointed out, the fact is that people are moving away, and that's just the trend. But why are people moving? One reason is that Stack Overflow, Reddit, and -cafe all