Re: [GHC] #4211: LLVM: Stack alignment on OSX

2011-06-28 Thread GHC
#4211: LLVM: Stack alignment on OSX +--- Reporter: dterei |Owner: dterei Type: task | Status: new Priority: normal |Milestone: 7.2.1

Re: [GHC] #4459: Polymorphic Data.Dynamic

2011-06-28 Thread GHC
#4459: Polymorphic Data.Dynamic -+-- Reporter: vivian|Owner: vivian Type: feature request | Status: new Priority: normal

Re: [GHC] #4459: Polymorphic Data.Dynamic

2011-06-28 Thread GHC
#4459: Polymorphic Data.Dynamic -+-- Reporter: vivian|Owner: vivian Type: feature request | Status: new Priority: normal

Re: [GHC] #5281: Bad compiler warning

2011-06-28 Thread GHC
#5281: Bad compiler warning -+-- Reporter: augustss |Owner: Type: bug | Status: new Priority: high |Milestone: 7.2.1

[GHC] #5284: Simplifier performance regression (or infinite loop)

2011-06-28 Thread GHC
#5284: Simplifier performance regression (or infinite loop) -+-- Reporter: simonmar |Owner: Type: bug | Status: new

[GHC] #5285: Core lint error in T3001-2 [7.0 regression]

2011-06-28 Thread GHC
#5285: Core lint error in T3001-2 [7.0 regression] -+-- Reporter: simonmar |Owner: Type: bug | Status: new Priority: highest

Re: [GHC] #5285: Core lint error in T3001-2 [7.0 regression]

2011-06-28 Thread GHC
#5285: Core lint error in T3001-2 [7.0 regression] -+-- Reporter: simonmar |Owner: Type: bug | Status: new Priority: highest

Re: [GHC] #5272: Performance regression

2011-06-28 Thread GHC
#5272: Performance regression ---+ Reporter: augustss | Owner: Type: bug | Status: closed Priority: normal| Milestone:

[GHC] #5286: panic: getPredTyDescription EqPred [7.0 regression]

2011-06-28 Thread GHC
#5286: panic: getPredTyDescription EqPred [7.0 regression] -+-- Reporter: simonmar |Owner: Type: bug | Status: new Priority: highest

Re: [GHC] #4903: Inliner looping when specialising across modules (with GADTs and other extensions)

2011-06-28 Thread GHC
#4903: Inliner looping when specialising across modules (with GADTs and other extensions) -+-- Reporter: dreixel | Owner: simonpj Type: bug |

Re: [GHC] #5250: SEGFAULT in FFI to C++ library

2011-06-28 Thread GHC
#5250: SEGFAULT in FFI to C++ library -+-- Reporter: acowley | Owner: Type: bug | Status: new Priority: high| Milestone: 7.2.1

Re: [GHC] #5282: Bizarre results from -P profiler on OS X

2011-06-28 Thread GHC
#5282: Bizarre results from -P profiler on OS X ---+ Reporter: bos |Owner: simonmar Type: bug | Status: new Priority: normal

Re: [GHC] #5283: Arrow command combinators: addTickHsExpr explodes in GHCi

2011-06-28 Thread GHC
#5283: Arrow command combinators: addTickHsExpr explodes in GHCi +--- Reporter: peteg | Owner: Type: bug | Status: closed Priority: normal

Re: [GHC] #3352: Data.Word should define instances of Random for each type

2011-06-28 Thread GHC
#3352: Data.Word should define instances of Random for each type -+-- Reporter: kaol |Owner: rrnewton Type: feature request | Status: merge Priority: normal

[GHC] #5287: The 'impossible' happened. solveDerivEqns: probable loop

2011-06-28 Thread GHC
#5287: The 'impossible' happened. solveDerivEqns: probable loop --+- Reporter: agocorona | Owner: Type: bug| Status: new Priority: normal |

Re: [GHC] #4211: LLVM: Stack alignment on OSX

2011-06-28 Thread GHC
#4211: LLVM: Stack alignment on OSX +--- Reporter: dterei |Owner: dterei Type: task | Status: new Priority: normal |Milestone: 7.2.1

Re: [GHC] #5223: Make interruptProcessGroupOf interrupt the current process group

2011-06-28 Thread GHC
#5223: Make interruptProcessGroupOf interrupt the current process group +--- Reporter: Favonia |Owner: simonmar Type: feature request | Status: new

Re: [GHC] #5287: The 'impossible' happened. solveDerivEqns: probable loop

2011-06-28 Thread GHC
#5287: The 'impossible' happened. solveDerivEqns: probable loop ---+ Reporter: agocorona |Owner: Type: bug | Status: new Priority: normal

Re: [GHC] #5282: Bizarre results from -P profiler on OS X

2011-06-28 Thread GHC
#5282: Bizarre results from -P profiler on OS X ---+ Reporter: bos |Owner: simonmar Type: bug | Status: new Priority: normal

Re: [GHC] #5282: Bizarre results from -P profiler on OS X

2011-06-28 Thread GHC
#5282: Bizarre results from -P profiler on OS X ---+ Reporter: bos |Owner: simonmar Type: bug | Status: new Priority: normal

Re: [GHC] #5223: Make interruptProcessGroupOf interrupt the current process group

2011-06-28 Thread GHC
#5223: Make interruptProcessGroupOf interrupt the current process group +--- Reporter: Favonia |Owner: simonmar Type: feature request | Status: new

Re: [GHC] #5223: Make interruptProcessGroupOf interrupt the current process group

2011-06-28 Thread GHC
#5223: Make interruptProcessGroupOf interrupt the current process group +--- Reporter: Favonia |Owner: simonmar Type: feature request | Status: new

Re: [GHC] #5223: Make interruptProcessGroupOf interrupt the current process group

2011-06-28 Thread GHC
#5223: Make interruptProcessGroupOf interrupt the current process group +--- Reporter: Favonia |Owner: simonmar Type: feature request | Status: new

Re: [GHC] #5262: Compiling with -O makes some expressions too lazy and causes space leaks

2011-06-28 Thread GHC
#5262: Compiling with -O makes some expressions too lazy and causes space leaks -+-- Reporter: michal.palka |Owner: simonmar Type: bug

Re: [GHC] #5129: evaluate optimized away

2011-06-28 Thread GHC
#5129: evaluate optimized away -+-- Reporter: dons |Owner: simonmar Type: bug | Status: new Priority: normal|

Re: [GHC] #5288: Less noisy version of -fwarn-name-shadowing

2011-06-28 Thread GHC
#5288: Less noisy version of -fwarn-name-shadowing -+-- Reporter: batterseapower| Owner: Type: feature request | Status: new Priority: normal|

Re: [GHC] #4459: Polymorphic Data.Dynamic

2011-06-28 Thread GHC
#4459: Polymorphic Data.Dynamic -+-- Reporter: vivian|Owner: vivian Type: feature request | Status: new Priority: normal

Re: [GHC] #4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class

2011-06-28 Thread GHC
#4314: Move 'split' from the 'RandomGen' class to a new 'SplittableGen' class ---+ Reporter: TomMD | Owner: Type: proposal | Status: closed

[GHC] #5289: Can't use ghci with a library linked against libstdc++ on Linux

2011-06-28 Thread GHC
#5289: Can't use ghci with a library linked against libstdc++ on Linux ---+ Reporter: bos | Owner: Type: bug | Status: new Priority: normal |

Re: [GHC] #5289: Can't use ghci with a library linked against libstdc++ on Linux

2011-06-28 Thread GHC
#5289: Can't use ghci with a library linked against libstdc++ on Linux ---+ Reporter: bos | Owner: Type: bug | Status: new Priority: normal |

Re: Testsuite failures and some easy fixes

2011-06-28 Thread Simon Marlow
On 21/06/2011 15:41, Daniel Fischer wrote: I'm working my way through the current set of unexpected failures, in particular: Further, 17 unexpected failures are due to hpc output being formatted differently from the expectation (5x hpc_fork, 6x hpc001, 6x tough). I've found the cause of

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Jean-Marie Gaillourdet
Hi Audrey, are you aware that Haskell already supports multi-line strings? foo = This is a\ \multi-line\ \string! See Section 2.6 of http://haskell.org/onlinereport/lexemes.html Regards, Jean On 25.06.11 22:55, 唐鳳 wrote: Hi all, I've just released string-qq 0.0.2 to

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Ivan Lazar Miljenovic
2011/6/28 Jean-Marie Gaillourdet j...@gaillourdet.net: Hi Audrey, are you aware that Haskell already supports multi-line strings? foo = This is a\       \multi-line\       \string! See Section 2.6 of http://haskell.org/onlinereport/lexemes.html I've used this approach for multi-line

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread 唐鳳
Jean-Marie Gaillourdet 於 2011/6/28 下午4:57 寫道: Hi Audrey, are you aware that Haskell already supports multi-line strings? foo = This is a\ \multi-line\ \string! Hi Jean-Marie, Yeah, I am aware of that, I wrote a 381-lines multi-lines strings once… :-)

[Haskell] Open Call for a Springer LNCS Volume on Resource Analysis

2011-06-28 Thread Ricardo Peña
*** * *OPEN CALL FOR A SPRINGER LNCS VOLUME ON RESOURCE ANALYSIS * *To be evaluated in conjunction with the selected papers of the 2nd International *Workshop on Foundational and Practical Aspects of Resource

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Dave Bayer
Part of the dominance of scripting languages is clean support for heredocs. So much of every arena of life comes down to getting It's not about me! I love Haskell but it doesn't get this. Imagine a document that's nominally Haskell, but about 80% some other language such as TeX (e.g. code for a

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Krzysztof Skrzętnicki
What about Literate Haskell then? People write a lot of LH blog posts, so it would seem to be quite flexible. Best regards, Krzysztof Skrzętnicki On Tue, Jun 28, 2011 at 16:13, Dave Bayer ba...@cpw.math.columbia.eduwrote: Part of the dominance of scripting languages is clean support for

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Steffen Schuldenzucker
On 06/28/2011 08:25 PM, Krzysztof Skrzętnicki wrote: What about Literate Haskell then? People write a lot of LH blog posts, so it would seem to be quite flexible. IMHO, these are different tasks. * Embed Haskell into some other language is solved by Literate Haskell * Embed some other

Re: [Haskell] ANNOUNCE: string-qq-0.0.2

2011-06-28 Thread Dave Bayer
On Jun 28, 2011, at 2:34 PM, Steffen Schuldenzucker wrote: On 06/28/2011 08:25 PM, Krzysztof Skrzętnicki wrote: What about Literate Haskell then? People write a lot of LH blog posts, so it would seem to be quite flexible. IMHO, these are different tasks. * Embed Haskell into some other

Re: TypeFamilies vs. etc - TTypeable

2011-06-28 Thread Anthony Clayden
dm-list-haskell-prime@... writes: Thanks David, For the +1 vote on the word restraints. Yes, my thinking was that it was both sufficiently suggestive and sufficiently separate from constraints. Also 'restrained' has an overtone of civilised and moderate, compared to the 'wild west' of

Re: [Haskell-cafe] Enumerators, Enumeratees and Iterators

2011-06-28 Thread Dmitry Olshansky
Hi, for the first question you can look at combinators in Data.Iteratee.ListLikehttp://hackage.haskell.org/packages/archive/iteratee/0.8.5.0/doc/html/Data-Iteratee-ListLike.html for iteratee package or

[Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread John Ky
Hi all, I'm practising my Haskell by writing a simple TCP echo server and finding that getting my program control to be succinct is rather tricky. In particular, I have return () everywhere, my error handling is verbose and I'm not entirely sure my recursion is the cleanest way syntactically to

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread Ivan Lazar Miljenovic
On 28 June 2011 18:08, John Ky newho...@gmail.com wrote: Hi all, I'm practising my Haskell by writing a simple TCP echo server and finding that getting my program control to be succinct is rather tricky.  In particular, I have return () everywhere, my error handling is verbose and I'm not

Re: [Haskell-cafe] Data Flow Programming in FP

2011-06-28 Thread Richard Senington
On 20/06/11 15:45, Richard Senington wrote: Hi all, I have recently become interested in Dataflow programming and how it related to functional languages. I am wondering if the community has any advice on reading matter or other directions to look at. So far I have been looking through the

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread Erik de Castro Lopo
Ivan Lazar Miljenovic wrote: I don't think you need all those return () everywhere... And at the end, why do you do line - getLine when you don't use the result? The hlint program would have flagged both of those and possibly others. See: http://community.haskell.org/~ndm/hlint/ Erik --

Re: [Haskell-cafe] Enumerators, Enumeratees and Iterators

2011-06-28 Thread Ertugrul Soeylemez
Sævar Berg s.b.saevars...@gmail.com wrote: The first question is, I think, to be solved with enumeratees but I can't really grok how. Let's say I have an iteratee that consumes all input. Is it possible to implement an enumeratee or something else to stick between the enumerator and the

[Haskell-cafe] Possible bug in GHC 7.0.3

2011-06-28 Thread Alberto G. Corona
I have an 'impossible' happened error. The code may look a little bit convoluted but it is part of my real code.: - begin of code-- {-# LANGUAGE FlexibleInstances, UndecidableInstances , MultiParamTypeClasses #-} class Serializable a b class

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread John Ky
Hi Eric, Ivan, On 28 June 2011 18:32, Erik de Castro Lopo mle...@mega-nerd.com wrote: The hlint program would have flagged both of those and possibly others. See: Cool! It didn't flag either for me, but it recommended replacing ++ (show port)with ++ show port, if then else with unless,

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread Jonas Almström Duregård
There is the void function in Control.Monad: http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Monad.html#v:void Instead of using return () you can just use void processLine. Also some people like to use the either function instead of matching on Left/Right. In this case

Re: [Haskell-cafe] Cleaner way to write code and handle errors?

2011-06-28 Thread John Ky
Thanks Jonas, I feel much better already: import Control.Concurrent import Control.Exception import Control.Monad import Network import System.IO import System.IO.Error (isEOFError) main = withSocketsDo $ do sListen - listenOn (PortNumber 8000) putStrLn Listening on Port 8000 forkIO $

Re: [Haskell-cafe] What is a simple pattern binding?

2011-06-28 Thread Simon Marlow
On 26/06/2011 09:31, Paterson, Ross wrote: If this is the case, then multiple sentences in the 2010 report don't make sense, though the way in which they don't make sense sort of depends on what simple pattern binding means. Indeed, the Report has two problems: Sections 4.4.3.2 and 4.5.5 have

Re: [Haskell-cafe] Enumerators, Enumeratees and Iterators

2011-06-28 Thread Dmitry Olshansky
If I've understood it correctly, concurrent is similar to functions discussed here: http://www.haskell.org/pipermail/haskell-cafe/2011-April/091474.html and here http://www.haskell.org/pipermail/haskell-cafe/2011-January/088319.html 2011/6/28 Ertugrul Soeylemez e...@ertes.de Sævar Berg

[Haskell-cafe] Exclusive mode in openFile

2011-06-28 Thread Gracjan Polak
Hi all, It seems I'm not allowed to open same file both for writing and for reading: Prelude System.IO f_out - openFile mylog.log AppendMode Prelude System.IO f_in - openFile mylog.log ReadMode *** Exception: mylog.log: openFile: resource busy (file is locked) Usage scenario: I use hslogger

Re: [Haskell-cafe] Installation Failed: Haskell Platform 2011.2.0.1-i386 for OS X

2011-06-28 Thread Jason Dagit
On Mon, Jun 27, 2011 at 10:33 AM, John Velman vel...@cox.net wrote: I'm running OS X 10.6.7, XCode 3.2.5.  When  I try to install The Haskell Platform 2011.2.0.1 for Mac OS X 10.6 (Snow Leopard)  it goes all the way through to running package scripts, then says installation failed I did two

Re: [Haskell-cafe] Possible bug in GHC 7.0.3

2011-06-28 Thread Jason Dagit
On Tue, Jun 28, 2011 at 3:43 AM, Alberto G. Corona agocor...@gmail.com wrote: I have an 'impossible' happened error. The code may look a little bit convoluted but it is part of my real code.: I don't know why it's crashing, but did you already report it as a bug? If not, you definitely should.

Re: [Haskell-cafe] Exclusive mode in openFile

2011-06-28 Thread Max Bolingbroke
On 28 June 2011 17:50, Gracjan Polak gracjanpo...@gmail.com wrote: It seems I'm not allowed to open same file both for writing and for reading: This behaviour is part of the Haskell 98 specification (section 21.2.3, http://www.haskell.org/onlinereport/io.html): Implementations should enforce

Re: [Haskell-cafe] Possible bug in GHC 7.0.3

2011-06-28 Thread Alberto G. Corona
Reported: http://hackage.haskell.org/trac/ghc/ticket/5287 2011/6/28 Alberto G. Corona agocor...@gmail.com 2011/6/28 Jason Dagit dag...@gmail.com On Tue, Jun 28, 2011 at 3:43 AM, Alberto G. Corona agocor...@gmail.com wrote: I have an 'impossible' happened error. The code may look a

Re: [Haskell-cafe] Enumerators, Enumeratees and Iterators

2011-06-28 Thread Alexander Solla
On Mon, Jun 27, 2011 at 7:21 PM, Sævar Berg s.b.saevars...@gmail.comwrote: The first question is, I think, to be solved with enumeratees but I can't really grok how. Let's say I have an iteratee that consumes all input. Is it possible to implement an enumeratee or something else to stick

Re: [Haskell-cafe] Exclusive mode in openFile

2011-06-28 Thread Gracjan Polak
Max Bolingbroke batterseapower at hotmail.com writes: This behaviour is part of the Haskell 98 specification (section 21.2.3, http://www.haskell.org/onlinereport/io.html): Thanks for the explanation. Such sharing behavior should be mentioned in documentation:

Re: [Haskell-cafe] Exclusive mode in openFile

2011-06-28 Thread Brandon Allbery
On Tue, Jun 28, 2011 at 13:56, Gracjan Polak gracjanpo...@gmail.com wrote: What was the rationale behind such strict non-sharing policy? The obvious rationale is that it helps maintain the illusion of referential integrity within the process. (Outside is a lost cause, but operations on

Re: [Haskell-cafe] Installation Failed: Haskell Platform 2011.2.0.1-i386 for OS X

2011-06-28 Thread Tom Murphy
On 6/28/11, Jason Dagit dag...@gmail.com wrote: I'd try asking on StackOverflow. I think the people who know the answer might be watching there instead of here. Really? I had thought that everyone who was on SO was on here also. Tom ___

Re: [Haskell-cafe] Installation Failed: Haskell Platform 2011.2.0.1-i386 for OS X

2011-06-28 Thread Jason Dagit
On Tue, Jun 28, 2011 at 11:14 AM, Tom Murphy amin...@gmail.com wrote: On 6/28/11, Jason Dagit dag...@gmail.com wrote: I'd try asking on StackOverflow.  I think the people who know the answer might be watching there instead of here. Really? I had thought that everyone who was on SO was on

[Haskell-cafe] Problem building with Cabal + TH + Library with FFI to C++ via C Wrapper

2011-06-28 Thread Ozgun Ataman
Dear Cafe, I have recently run into a very annoying issue that I was not able to get around. I have a local package that makes use of the snappy compression library, which boasts bindings to C++ through a C wrapper. Everything compiles fine with ghc --make, but cabal install hits a wall when

Re: [Haskell-cafe] Exclusive mode in openFile

2011-06-28 Thread Max Bolingbroke
On 28 June 2011 18:56, Gracjan Polak gracjanpo...@gmail.com wrote: Anyway, where do I find an 'openFileShared' function? Packages unix/Win32 do not have obvious leads... Perhaps the functions in System.Posix.IO do what you want?

[Haskell-cafe] attoparsec and vectors

2011-06-28 Thread Eric Rasmussen
Hi everyone, I have a task that involves parsing a flat-file into a vector from the Data.Vector package. In the interest of keeping things simple, I first used Attoparsec.Text's version of many and then converted the resulting list to a vector: import qualified Data.Vector as V import

[Haskell-cafe] IterIO type restricted functions

2011-06-28 Thread John Ky
Hi all, From the IterIO tutorial: enumFile' is like enumFile above, but type restricted to data in the lazy ByteString format, which is more efficient than plain Strings. (enumFile supports multiple types, but in this example there is not enough information for Haskell to choose one of them, so

Re: [Haskell-cafe] Possible bug in GHC 7.0.3

2011-06-28 Thread Ryan Ingram
So this is definitely a GHC bug, but I think the problem is probably triggered by this line: instance Serializable a b = IResource a I don't think this is a valid instance declaration without a functional dependency on Serializable, as it's impossible to know which type 'b' to use in the

Re: [Haskell-cafe] attoparsec and vectors

2011-06-28 Thread Gregory Collins
On Tue, Jun 28, 2011 at 6:20 PM, Eric Rasmussen ericrasmus...@gmail.com wrote: It runs quickly, but I naively thought I could outperform it by reworking many to build a vector directly, instead of having to build a list first and then convert it to a vector: manyVec :: Alternative f = f a - f

Re: [Haskell-cafe] IterIO type restricted functions

2011-06-28 Thread dm-list-haskell-cafe
At Wed, 29 Jun 2011 10:11:26 +1000, John Ky wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] Hi all, From the IterIO tutorial: enumFile' is like enumFile above, but type restricted to data in the lazy ByteString format, which is more efficient