Re: [Haskell-cafe] the problem of design by negation

2009-05-22 Thread Jason Dagit
On Thu, May 21, 2009 at 10:53 PM, Conal Elliott co...@conal.net wrote: advice One thing you may try is to ask the architect for evidence and/or logical proof of his claims that something cannot work.  As much as you can, ask from a place of curiosity and even awe.  After all, existence can

Putting unit tests in cabal files (Was Re: [Haskell-cafe] HUnit)

2009-05-22 Thread Magnus Therning
On Fri, May 22, 2009 at 12:13 AM, Vasili I. Galchin vigalc...@gmail.com wrote: Hello,     I have some code with several test cases that use HUnit. I added hunit as one of my cabal dependencies but cabal complained with: Setup: At least the following dependencies are missing: hutil -any

Re: [Haskell-cafe] the problem of design by negation

2009-05-22 Thread Conal Elliott
One flimsy argument I often hear is It wouldn't work because how ..., or because what As if a question were an argument. I call this rather popular tactic proof by ignorance or proof by lack of imagination. [...] I just remembered another popular variation on this bogus argument. If

Re: [Haskell-cafe] the problem of design by negation

2009-05-22 Thread Conal Elliott
Instead of continuing to make the request, ask what it would take for the request to be possible. Thanks, Jason. I like this shift. It moves the dynamic away from a tightly confined yes/no (and often win/lose) to an expansive *how*. It welcomes collaboration in finding something better

Re: [Haskell-cafe] the problem of design by negation

2009-05-22 Thread Michael Mossey
Conal Elliott wrote: Hi Michael, I'm going to hazard a guess. Please let me know how accurate it is. Conal, I think you described this situation well. You must know this kind of person---I'm sure there's more than one in the world! When asked to justify his design, the lead software

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Duncan Coutts
On Thu, 2009-05-21 at 21:30 -0500, John Goerzen wrote: Duncan Coutts wrote: On Thu, 2009-05-21 at 15:22 -0700, Alexander Dunlap wrote: Since those types come out of the time library, and that library's version *has* been bumped (I assume), couldn't you use Cabal to condition on the

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Neil Brown
Duncan Coutts wrote: What we're currently missing is a PVP checker: a tool to compare APIs of package versions and check that it is following the PVP. Ideally, we will have packages opt-in to follow the PVP for those packages that do opt-in we have the PVP enforced on hackage using the checker

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Henning Thielemann
John Goerzen schrieb: So this is annoying (CCing -cafe) I need NominalDiffTime and UTCTime to have Typeable instances. In 6.10.1, they didn't ship with them out of the box, so I added them. Apparently, in 6.10.3, they DO ship with those instances out of the box. Annoyingly, that means

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-22 Thread Daniel Fischer
Am Freitag 22 Mai 2009 04:59:51 schrieb Mario Blažević: I'll cut to the chase. The short program below works perfectly: when I compile it with -O2 -threaded and run with +RTS -N2 command-line options, I get a nearly 50% real-time improvement: $ time ./primes-test +RTS -N2 5001 real

Re: Putting unit tests in cabal files (Was Re: [Haskell-cafe] HUnit)

2009-05-22 Thread Henning Thielemann
Magnus Therning schrieb: On Fri, May 22, 2009 at 12:13 AM, Vasili I. Galchin vigalc...@gmail.com wrote: Hello, I have some code with several test cases that use HUnit. I added hunit as one of my cabal dependencies but cabal complained with: Setup: At least the following dependencies

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-22 Thread Don Stewart
Answer recorded at: http://haskell.org/haskellwiki/Performance/Parallel daniel.is.fischer: Am Freitag 22 Mai 2009 04:59:51 schrieb Mario Blažević: I'll cut to the chase. The short program below works perfectly: when I compile it with -O2 -threaded and run with +RTS -N2 command-line

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Don Stewart
duncan.coutts: What we're currently missing is a PVP checker: a tool to compare APIs of package versions and check that it is following the PVP. Ideally, we will have packages opt-in to follow the PVP for those packages that do opt-in we have the PVP enforced on hackage using the checker tool.

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread John Goerzen
Don Stewart wrote: duncan.coutts: What we're currently missing is a PVP checker: a tool to compare APIs of package versions and check that it is following the PVP. Ideally, we will have packages opt-in to follow the PVP for those packages that do opt-in we have the PVP enforced on hackage

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-22 Thread Mario Blazevic
Daniel Fischer wrote: Am Freitag 22 Mai 2009 04:59:51 schrieb Mario Blažević: ... I'm confused. I know that `par` must be able work across modules boundaries, because Control.Parallel.Strategies is a module and presumably it works. What am I doing wrong? You forgot {-# INLINE parallelize

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread John Goerzen
Henning Thielemann wrote: John Goerzen schrieb: So this is annoying (CCing -cafe) I need NominalDiffTime and UTCTime to have Typeable instances. In 6.10.1, they didn't ship with them out of the box, so I added them. Apparently, in 6.10.3, they DO ship with those instances out of the box.

Re: Putting unit tests in cabal files (Was Re: [Haskell-cafe] HUnit)

2009-05-22 Thread Magnus Therning
On Fri, May 22, 2009 at 1:08 PM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Magnus Therning schrieb: On Fri, May 22, 2009 at 12:13 AM, Vasili I. Galchin vigalc...@gmail.com wrote: Hello,     I have some code with several test cases that use HUnit. I added hunit as one of my

Re: [Haskell-cafe] haskellnet

2009-05-22 Thread Robert Wills
I tried contacting Jun Mukai at the email address given in the package but I haven't heard a reply. Just to get this out of the way I've put my darcs repository with the changes I've made up on my website. It should build and install with: darcs get

Re: [Haskell-cafe] A problem with par and modules boundaries...

2009-05-22 Thread Daniel Fischer
Am Freitag 22 Mai 2009 15:11:32 schrieb Mario Blazevic: Daniel Fischer wrote: Am Freitag 22 Mai 2009 04:59:51 schrieb Mario Blažević: ... I'm confused. I know that `par` must be able work across modules boundaries, because Control.Parallel.Strategies is a module and presumably it works.

[Haskell-cafe] Re: A problem with par and modules boundaries...

2009-05-22 Thread John Lato
Hi Mario, It looks like the parallelize function is getting inlined when it's in the same file, but not when it's in a separate file. Adding a {-# INLINE parallelize #-} pragma to the module with parallelize recovers all the performance for me. You could probably see exactly what's happening in

Re: [Haskell-cafe] generic filter through MonadPlus

2009-05-22 Thread Sebastian Fischer
On May 22, 2009, at 4:13 AM, Jason Dusek wrote: I'd like to know what folks think about the use of `MonadPlus` in this case. The |guard| function is almost |filter|: import Control.Monad ( MonadPlus, guard ) filter :: MonadPlus m = (a - Bool) - m a - m a filter p m = do a - m

Re: [Haskell-cafe] community.haskell.org and code.haskell.org problems

2009-05-22 Thread Ian Lynagh
On Mon, May 18, 2009 at 11:38:09AM +0100, Neil Mitchell wrote: Is there a reason for the poor reliability of these servers? We do have a plan to move community to a beefier machine with more reliable hosting. There are a few details to sort out first, and then we just need to find the time to

Re: [Haskell-cafe] Introducing Instances in GHC point releases

2009-05-22 Thread Ian Lynagh
Hi John, On Thu, May 21, 2009 at 09:30:24PM -0500, John Goerzen wrote: I guess my larger point is just a plea to the community: please be really careful about what you do to GHC in point releases. We are careful about what goes into the official GHC release. However, ever since GHC 6.6

[Haskell-cafe] haddock could be a pretty-printer?

2009-05-22 Thread Maurício
Hi, The new version of haddock makes use of GHC parser. How much of effort would take to make haddock generate pretty-print of the source code itself, including haddock documentation (although probably loosing other comments)? Maybe even an html version that documentation could point to? Thanks,

[Haskell-cafe] Data.Binary suboptimal instance

2009-05-22 Thread Andrew Coppin
So lately I've been working on a little program to generate trippy graphics. (Indeed, some of you may remember it from a few years back...) Anyway, getting to the point, I just restructured my program. As part of the restructuring, I got rid of all the jiggery-pokery with Data.Array.Storable

Re: [Haskell-cafe] haddock could be a pretty-printer?

2009-05-22 Thread David Waern
2009/5/22 Maurício briqueabra...@yahoo.com: Hi, The new version of haddock makes use of GHC parser. How much of effort would take to make haddock generate pretty-print of the source code itself, including haddock documentation (although probably loosing other comments)? Maybe even an html

Re: [Haskell-cafe] Data.Binary suboptimal instance

2009-05-22 Thread Henning Thielemann
On Fri, 22 May 2009, Andrew Coppin wrote: So lately I've been working on a little program to generate trippy graphics. (Indeed, some of you may remember it from a few years back...) Anyway, getting to the point, I just restructured my program. As part of the restructuring, I got rid of all

Re: [Haskell-cafe] Data.Binary suboptimal instance

2009-05-22 Thread Andrew Coppin
Henning Thielemann wrote: On Fri, 22 May 2009, Andrew Coppin wrote: My first problem was quite simple. I want to write a program that reads an item from the input file, processes it, writes it to the output file, and repeats until the input file is empty. Data.Binary doesn't appear to

[Haskell-cafe] Re: haddock could be a pretty-printer?

2009-05-22 Thread Maurício
The new version of haddock makes use of GHC parser. How much of effort would take to make haddock generate pretty-print of the source code itself, (...) (...) Is this what you want or is there some reason why you want the code to be pretty-printed? I usually have to resort to braces or bad

Re: [Haskell-cafe] Data.Binary suboptimal instance

2009-05-22 Thread Khudyakov Alexey
On Friday 22 May 2009 23:34:50 Henning Thielemann wrote: So lately I've been working on a little program to generate trippy graphics. (Indeed, some of you may remember it from a few years back...) Anyway, getting to the point, I just restructured my program. As part of the restructuring, I

Fwd: [Haskell-cafe] Data.Binary suboptimal instance

2009-05-22 Thread Antoine Latter
I suppose I should send my reply to the list ... -- Forwarded message -- From: Antoine Latter aslat...@gmail.com Date: Fri, May 22, 2009 at 5:54 PM Subject: Re: [Haskell-cafe] Data.Binary suboptimal instance To: Khudyakov Alexey alexey.sklad...@gmail.com On Fri, May 22, 2009 at

[Haskell-cafe] ANNOUNCE: text 0.2, fast and comprehensive Unicode support using stream fusion

2009-05-22 Thread Bryan O'Sullivan
I'm pleased to announce the availability of text 0.2, an efficient Unicode text library that uses stream fusion. New and notable in this release is support for lazy, chunked text, so you can process text files far larger than memory using a small footprint. Hackage page:

[Haskell-cafe] import qualified?

2009-05-22 Thread Vasili I. Galchin
Hello, I am working with some somewhat legacy code. I understand what import qualified Blah as B means but what does import qualified Blah mean? Is this a deprecated feature? I saw with user defined module as well as with import qualified System for example. REgards, Vasili

Re: [Haskell-cafe] import qualified?

2009-05-22 Thread wren ng thornton
Vasili I. Galchin wrote: Hello, I am working with some somewhat legacy code. I understand what import qualified Blah as B means but what does import qualified Blah mean? Is this a deprecated feature? I saw with user defined module as well as with import qualified System for example. It

Re: [Haskell-cafe] import qualified?

2009-05-22 Thread Paulo Tanimoto
On Sat, May 23, 2009 at 12:39 AM, Vasili I. Galchin vigalc...@gmail.com wrote: Hello, I am working with some somewhat legacy code. I understand what import qualified Blah as B means but what does import qualified Blah mean? Is this a deprecated feature? I saw with user defined module as