[GHC] #5100: Stack space overflow when using -N2 and not with -N1

2011-04-07 Thread GHC
#5100: Stack space overflow when using -N2 and not with -N1 ---+ Reporter: mitar | Owner: Type: bug | Status: new Priority: normal |

Re: [GHC] #5099: snap-0.4.1 ExitFailure 1

2011-04-07 Thread GHC
#5099: snap-0.4.1 ExitFailure 1 ---+ Reporter: jamiltron | Owner: Type: bug | Status: closed Priority: normal| Milestone:

Re: [GHC] #4928: Add primops for copying/cloning an array

2011-04-07 Thread GHC
#4928: Add primops for copying/cloning an array --+- Reporter: tibbe| Owner: simonmar Type: feature request | Status: patch Priority: normal |

Re: [GHC] #4928: Add primops for copying/cloning an array

2011-04-07 Thread GHC
#4928: Add primops for copying/cloning an array --+- Reporter: tibbe| Owner: simonmar Type: feature request | Status: patch Priority: normal |

Re: [GHC] #5085: internal error: evacuate: strange closure type

2011-04-07 Thread GHC
#5085: internal error: evacuate: strange closure type ---+ Reporter: mitar |Owner: simonmar Type: bug | Status: new Priority: highest |

Re: [GHC] #5092: Remove Show instance for GHC.Event.IOCallback

2011-04-07 Thread GHC
#5092: Remove Show instance for GHC.Event.IOCallback -+-- Reporter: basvandijk|Owner: igloo Type: feature request | Status: new Priority: normal|

Re: [GHC] #4404: RecordWildCards

2011-04-07 Thread GHC
#4404: RecordWildCards +--- Reporter: igloo|Owner: igloo Type: bug | Status: patch Priority: normal |Milestone:

Re: [GHC] #4404: RecordWildCards

2011-04-07 Thread GHC
#4404: RecordWildCards --+- Reporter: igloo| Owner: igloo Type: bug | Status: closed Priority: normal |

Re: [GHC] #5092: Remove Show instance for GHC.Event.IOCallback

2011-04-07 Thread GHC
#5092: Remove Show instance for GHC.Event.IOCallback --+- Reporter: basvandijk | Owner: igloo Type: feature request | Status: closed Priority: normal |

Re: [GHC] #4510: No links will be generated to these packages:base-4.3.0.0

2011-04-07 Thread Claus Reinke
#4510: No links will be generated to these packages: base-4.3.0.0 -+-- Reporter: claus |Owner: igloo Type: bug | Status: infoneeded Priority: high |

Re: T3738 allocation figures for 32-bit

2011-04-07 Thread Simon Marlow
On 02/04/2011 22:35, Daniel Fischer wrote: Hit send too soon: Apparently the allocation figures drastically vary by arch and OS, it would probably be necessary to test on several such and be more generous with the limits. The same holds for other tests, of course. I had unexpected failures

Re: Strange performance effects with unsafePerformIO

2011-04-07 Thread Björn Peemöller
Simon Marlow schrieb: Incidentally this will be faster with GHC 7.2, because we implemented chunked stacks, so unsafePerformIO never has to traverse more than 32k of stack (you can tweak the chunk size with an RTS option). This is still quite a lot of overhead, but at least it is bounded.

Re: Validate failures on the new codegen

2011-04-07 Thread Edward Z. Yang
Excerpts from Karel Gardas's message of Thu Apr 07 13:14:46 -0400 2011: OK! Thanks for the information. So this -fnew-codegen is this famous codegen which is using hoopl for data-dependency tracking or something like that if I understand correctly Yep. And which is producing just C-- in

dynamic loading with ghc api?

2011-04-07 Thread Rob Nikander
Hi all, I'd like to load a value from a .o file. I've got... import ObjLink main = do initObjLinker loadObj Thing.o resolveObjs Just ptr - lookupSymbol Thing_value_closure Is that the correct symbol to load for the name value in module Thing? And if so, how to I get the haskell value

Re: dynamic loading with ghc api?

2011-04-07 Thread Don Stewart
Perhaps look at the plugins package source? -- Don On Thu, Apr 7, 2011 at 12:20 PM, Rob Nikander rob.nikan...@gmail.com wrote: Hi all, I'd like to load a value from a .o file.  I've got... import ObjLink main = do  initObjLinker  loadObj Thing.o  resolveObjs  Just ptr - lookupSymbol

Re: dynamic loading with ghc api?

2011-04-07 Thread Rob Nikander
Is the 'plugins' package compatible with dynamic linking of the main program? I ask because I wrote a test program using System.Plugins.load and it works fine, but when I link it to the GHC api using `ghc -dynamic ...' (which is nice cause it avoids the 50 MB executable), it seg faults when it

Re: dynamic loading with ghc api?

2011-04-07 Thread Don Stewart
Using plugins with dynamic Haskell objects hasn't been tested in quite a while. -- Don On Thu, Apr 7, 2011 at 5:14 PM, Rob Nikander rob.nikan...@gmail.com wrote: Is the 'plugins' package compatible with dynamic linking of the main program?   I ask because I wrote a test program using

Re: [Haskell] Announcing Djinn, version 2004-12-11, a coding wizard

2011-04-07 Thread Martin
After reading this post, i can only see a - b how to define more specific such as flow 0 y = y flow z flow x, y = flow z+x, y could you demonstrate using djinn to do above mapping definition to generate a function? ___ Haskell mailing list

Re: [Haskell] Announcing Djinn, version 2004-12-11, a coding wizard

2011-04-07 Thread Ivan Lazar Miljenovic
On 7 April 2011 14:35, Martin jobmatt...@gmail.com wrote: flow 0 y = y flow z flow x, y = flow z+x, y This doesn't appear to be a valid function definition... -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com ___

Re: [Haskell] Announcing Djinn, version 2004-12-11, a coding wizard

2011-04-07 Thread Lennart Augustsson
Djinn takes a type, what you have written does not appear to be a type. -- Lennart On Thu, Apr 7, 2011 at 3:35 PM, Martin jobmatt...@gmail.com wrote: After reading this post, i can only see a - b how to define more specific such as flow 0 y = y flow z flow x, y = flow z+x, y could

Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Roel van Dijk
On 6 April 2011 15:13, Duncan Coutts duncan.cou...@googlemail.com wrote: So since the goal is interoperability of source files then perhaps we should also have a section somewhere with interoperability guidelines for implementations that do store Haskell programs as OS files. I think a set of

Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Tillmann Rendel
Hi, Jason Reich wrote: Tillmann Rendel wrote: How would that affect the non-code parts of literate Haskell (*.lhs) files? In particular, would it place any burden on third-party tools processing these files? lhs2TeX already has limited support for UTF-8 for the rendering of Literate Agda

Re: [Colin Paul Adams] Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Colin Paul Adams
Roel == Roel van Dijk vandijk.r...@gmail.com writes: Roel On 6 April 2011 20:42, Colin Paul Adams co...@colina.demon.co.uk wrote: Roel It seems you have a problem with the word allowed. What do Roel you think of the interoperability guidelines as proposed by Roel Duncan? They

Proposal: add ghc -fwarn-non-ascii warning flag

2011-04-07 Thread Christian Maeder
similar in spirit to the -fwarn-tabs warning. C. P.S. In the mean time you may use http://projects.haskell.org/style-scanner/ (Caveat, it crashes on latin1 files when compiled with ghc-6.12 or greater.) ___ Haskell-prime mailing list

Re: [Colin Paul Adams] Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Roel van Dijk
On 7 April 2011 11:29, Christian Maeder christian.mae...@dfki.de wrote: I agree that Haskell files should be UTF-8, but I also agree that it is only relevant for Hackage (and Cabal) and already enforced by ghc-6.12. or higher. It is relevant for all tools and systems which process Haskell

Re: [Colin Paul Adams] Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Christian Maeder
Am 07.04.2011 13:09, schrieb Roel van Dijk: Please take a look at the following file: http://code.haskell.org/numerals/src/Text/Numeral/Language/ZH.hs Great, that file made my firefox open infinitely many tabs (so that I had to close it). C. ___

Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Roel van Dijk
On 7 April 2011 14:33, Doug McIlroy d...@cs.dartmouth.edu wrote: This supposition is unwarranted.  We have all seen relative naming systems that run both ways: a.b.c versus c(b(a)). And Haskellites would simplify the latter to c$b$a.  Secondary storage may be organized by files, segments,

Re: [Colin Paul Adams] Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Christian Maeder
Am 07.04.2011 13:09, schrieb Roel van Dijk: Please take a look at the following file: http://code.haskell.org/numerals/src/Text/Numeral/Language/ZH.hs The code would not suffer much if it were pure ASCII. I would prefer (ascii) haddock links to explain the various code points. C.

Re: [Colin Paul Adams] Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Roel van Dijk
On 7 April 2011 15:03, Christian Maeder christian.mae...@dfki.de wrote: The code would not suffer much if it were pure ASCII. I would prefer (ascii) haddock links to explain the various code points. The code in question contains Chinese characters like '三', which in a US-ASCII encoded Haskell

Re: Proposal: Define UTF-8 to be the encoding of Haskell source files

2011-04-07 Thread Roel van Dijk
On 7 April 2011 14:11, Duncan Coutts duncan.cou...@googlemail.com wrote: I would be happy to work with you and others to develop the report text for such a proposal. I posted my first draft already :-) What would be a good way to proceed? Looking at the process I think we should create a wiki

Re: [Haskell-cafe] mtlx has a nice design but is slow

2011-04-07 Thread Simon Peyton-Jones
GHC's goal is to be good enough at inlining and optimisation that you shouldn't take a performance hit for adding layers of abstraction. Sometimes it needs help (eg inlining pragmas). So as Don implies, it might be worth digging a bit to see where the performance hit comes from. Simon |

[Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread José Pedro Magalhães
Hi all, I want to use cabal-install on a machine without internet access. I tried downloading http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar, unpacking it and setting the local-repo field in the config file to this location but that doesn't work, as cabal-install says that it is

Re: [Haskell-cafe] ANNOUNCE: DocTest-0.2.0

2011-04-07 Thread Michael Snoyman
On Wed, Apr 6, 2011 at 11:53 PM, Simon Hengel simon.hen...@wiktory.orgwrote: Hello Michael, I would like to integrate DocTest into my normal test suite procedures. Do you have a recommended approach for this? I think I have projects using all of test-framework[1], HTF[2] and hspect[3],

Re: [Haskell-cafe] ANNOUNCE: swish 0.3.0.0

2011-04-07 Thread Graham Klyne
Excellent, thanks for running with this! I have an RDF/XML parser (based on a fork of HaXML) that I'd like to integrate at some time, and it's remotely possible that I might have a little time to work on this in the coming months.. #g -- Doug Burke wrote: I am pleased to announce an update

Re: [Haskell-cafe] ANNOUNCE: DocTest-0.2.0

2011-04-07 Thread Simon Hengel
I like the idea of a getDocTests function. In theory, it could take a cabal file as an argument, and use the Cabal library to get a list of all modules to be checked. It would also be convenient if it automatically passed in GHC options correlating to each LANGUAGE pragma found on a module.

Re: [Haskell-cafe] ANNOUNCE: DocTest-0.2.0

2011-04-07 Thread Michael Snoyman
On Thu, Apr 7, 2011 at 11:43 AM, Simon Hengel simon.hen...@wiktory.orgwrote: I like the idea of a getDocTests function. In theory, it could take a cabal file as an argument, and use the Cabal library to get a list of all modules to be checked. It would also be convenient if it

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Yitzchak Gale
José Pedro Magalhães wrote: I want to use cabal-install on a machine without internet access. Work is ongoing for a version of hackage that you can just install on your own server. Perhaps the people working on that can comment about the status. If all you want is a barebones server that you

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread José Pedro Magalhães
Hi Yitz, Thanks, but I don't really need a functional server or anything; I just want to have a local copy of Hackage on disk (latest versions only will do) and tell cabal-install to use that instead of the web. Regarding yackage, I don't think I can open ports on that machine either...

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Yitzchak Gale
José Pedro Magalhães wrote: Thanks, but I don't really need a functional server or anything; I just want to have a local copy of Hackage on disk (latest versions only will do) and tell cabal-install to use that instead of the web. If you have the package tarball, you can unpack it manually and

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Marc Weber
Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want? Do you want to mirror everything locally? Fetching latest versions only to generate hashes takes many hours. (Experience from hack-nix). Marc Weber

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Magnus Therning
On Thu, Apr 7, 2011 at 11:21, Marc Weber marco-owe...@gmx.de wrote: Local copy ? You know that hackage is hosting several thausands of source archives - also old versions you don't want? Do you want to mirror everything locally? Fetching latest versions only to generate hashes takes many

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread José Pedro Magalhães
Yes, I have that tarball. I just don't know how to tell cabal-install to use it. Going to each package, individually unpacking and installing it is what I've been doing so far, but I was hoping that could be automated. Cheers, Pedro On Thu, Apr 7, 2011 at 14:18, Magnus Therning

Re: [Haskell-cafe] ANNOUNCE: swish 0.3.0.0

2011-04-07 Thread Doug Burke
--- On Thu, 4/7/11, Graham Klyne g...@ninebynine.org wrote: From: Graham Klyne g...@ninebynine.org Subject: Re: ANNOUNCE: swish 0.3.0.0 To: Doug Burke doug_j_bu...@yahoo.com Cc: Haskell-Cafe@haskell.org, vigalc...@gmail.com Date: Thursday, April 7, 2011, 3:31 AM Excellent, thanks for

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Markus Läll
This could be a nice feature and not hard to implement, maybe someone could take it up? 2011/4/7 José Pedro Magalhães j...@cs.uu.nl Yes, I have that tarball. I just don't know how to tell cabal-install to use it. Going to each package, individually unpacking and installing it is what I've

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Vo Minh Thu
2011/4/7 José Pedro Magalhães j...@cs.uu.nl: Hi all, I want to use cabal-install on a machine without internet access. I tried downloading http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar, unpacking it and setting the local-repo field in the config file to this location but

[Haskell-cafe] parsec - source position information

2011-04-07 Thread Ozgur Akgun
Hi, Is there a way to get source position[1] information from parsec while defining a parser? It surely knows about source positions, as they are used while reporting a parsing error. data Identifier = Identifier String SourcePos pIdentifier :: Parser Identifier pIdentifier = do pos - ??

Re: [Haskell-cafe] parsec - source position information

2011-04-07 Thread Christopher Done
On 7 April 2011 17:22, Ozgur Akgun ozgurak...@gmail.com wrote: Is there a way to get source position[1] information from parsec while defining a parser? It surely knows about source positions, as they are used while reporting a parsing error.

Re: [Haskell-cafe] parsec - source position information

2011-04-07 Thread Daniel Fischer
On Thursday 07 April 2011 17:22:56, Ozgur Akgun wrote: Hi, Is there a way to get source position[1] information from parsec while defining a parser? It surely knows about source positions, as they are used while reporting a parsing error. data Identifier = Identifier String SourcePos

Re: [Haskell-cafe] parsec - source position information

2011-04-07 Thread Ozgur Akgun
Thanks! On 7 April 2011 16:27, Christopher Done chrisd...@googlemail.com wrote: On 7 April 2011 17:22, Ozgur Akgun ozgurak...@gmail.com wrote: Is there a way to get source position[1] information from parsec while defining a parser? It surely knows about source positions, as they are used

[Haskell-cafe] Stateful iteratees

2011-04-07 Thread Ertugrul Soeylemez
Hello fellow Haskellers, I'm trying to solve a very practical problem: I need a stateful iteratee monad transformer. Explicit state passing is very inconvenient and would destroy the elegance of my library. There are two approaches to this: 1. type MyT a m = Iteratee a (StateT MyConfig m)

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Gregory Collins
On Thu, Apr 7, 2011 at 7:04 PM, Ertugrul Soeylemez e...@ertes.de wrote: Hello fellow Haskellers, I'm trying to solve a very practical problem:  I need a stateful iteratee monad transformer.  Explicit state passing is very inconvenient and would destroy the elegance of my library. There are

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Ertugrul Soeylemez
Gregory Collins g...@gregorycollins.net wrote: I'm trying to solve a very practical problem:  I need a stateful iteratee monad transformer.  Explicit state passing is very inconvenient and would destroy the elegance of my library. There are two approaches to this: 1. type MyT a m

Re: [Haskell-cafe] 'Progress bar' enumeratee

2011-04-07 Thread David Hotham
Very interesting - thanks! Gregory Collins g...@gregorycollins.net wrote in message news:banlktikeh7aqfe2-jdq6docz+syw5mj...@mail.gmail.com... My enumerator style may not be the best (I'm long-winded), but personally when the stream types are the same on input and output I often skip the

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Gregory Collins
On Thu, Apr 7, 2011 at 7:35 PM, Ertugrul Soeylemez e...@ertes.de wrote: Why can't you use #1 and do this when you call run_? Because that runs the iteratee and leaves me with a StateT.  Even though I use a CPS-based StateT, I doubt that it can be converted back to Iteratee easily. With the

[Haskell-cafe] Is there a way to find out the type inferred for a local function inside another function? :)

2011-04-07 Thread KC
-- -- Regards, KC ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] DSL for task dependencies

2011-04-07 Thread S. Doaitse Swierstra
Eelco Dolstra has written a thesis about something like that. Unfortunataly not in Haskell. See http://nixos.org/ Doaitse On 17 mrt 2011, at 21:00, Serge Le Huitouze wrote: Hi Haskellers! I think I remember reading a blog post or web page describing a EDSL to describe tasks and their

Re: [Haskell-cafe] Is there a way to find out the type inferred for a local function inside another function? :)

2011-04-07 Thread Daniel Fischer
On Thursday 07 April 2011 21:52:29, KC wrote: There are probably better ways, but: module Infer where foo :: Num a = [a] - a foo = go 0 0 where go :: b go i s (x:xs) = go (i+1) (s+i*x) xs go _ s _ = s $ ghc Infer [1 of 1] Compiling Infer( Infer.hs, Infer.o )

Re: [Haskell-cafe] Is there a way to find out the type inferred for a local function inside another function? :)

2011-04-07 Thread Henning Thielemann
http://www.haskell.org/haskellwiki/Determining_the_type_of_an_expression ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Stateful iteratees

2011-04-07 Thread Ertugrul Soeylemez
Gregory Collins g...@gregorycollins.net wrote: On Thu, Apr 7, 2011 at 7:35 PM, Ertugrul Soeylemez e...@ertes.de wrote: Why can't you use #1 and do this when you call run_? Because that runs the iteratee and leaves me with a StateT.  Even though I use a CPS-based StateT, I doubt that it

[Haskell-cafe] cab 0.1.2

2011-04-07 Thread 山本和彦
Hello cafe, Let me announce cab version 0.1.2. This version integrates cabal-dev as well as cabal/ghc-pkg. So, you can use a sandbox for your development. http://www.mew.org/~kazu/proj/cab/en/ Here is the short explanation from the page above: cab is a MacPorts-like maintenance

[arch-haskell] AUR Comment for pdf2line

2011-04-07 Thread AUR Feedback
from http://aur.archlinux.org/packages.php?ID=17617 Maxr wrote: dep haskell-process=1.0.1.3 is missing in aur, can't build. --- If you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button.