Re: [GHC] #4449: GHC 7 can't do IO when demonized

2011-01-04 Thread GHC
#4449: GHC 7 can't do IO when demonized +--- Reporter: kazu-yamamoto | Owner: tibbe Type: bug| Status: new Priority: normal | Milestone: 7.0.2

Re: [GHC] #3618: memory-leak detector in +RTS -DS fails to track allocations in constructors

2011-01-04 Thread GHC
#3618: memory-leak detector in +RTS -DS fails to track allocations in constructors ---+ Reporter: guest | Type: bug Status: closed | Priority: normal

Re: [GHC] #3618: memory-leak detector in +RTS -DS fails to track allocations in constructors

2011-01-04 Thread GHC
#3618: memory-leak detector in +RTS -DS fails to track allocations in constructors ---+ Reporter: guest | Type: bug Status: closed | Priority: normal

Re: [GHC] #4868: deepseq should not depend on containers

2011-01-04 Thread GHC
#4868: deepseq should not depend on containers --+- Reporter: tibbe |Owner: Type: proposal | Status: new Priority: normal |

Re: [GHC] #4869: ghci command line option -l should accept either -llibrary or -l library (POSIX requirement)

2011-01-04 Thread GHC
#4869: ghci command line option -l should accept either -llibrary or -l library (POSIX requirement) -+-- Reporter: hgolden |Owner: Type: bug |

Re: [GHC] #4871: Build failure on windows: rts/Linker.c

2011-01-04 Thread GHC
#4871: Build failure on windows: rts/Linker.c -+-- Reporter: nsch |Owner: Type: bug | Status: new Priority: normal|

Re: [GHC] #4876: isEmptySampleVar returns False when threads are waiting on an empty SampleVar

2011-01-04 Thread GHC
#4876: isEmptySampleVar returns False when threads are waiting on an empty SampleVar -+-- Reporter: guest |Owner: simonmar Type: bug | Status: new

Re: [GHC] #4867: Incorrect result from trig functions

2011-01-04 Thread GHC
#4867: Incorrect result from trig functions ---+ Reporter: gwright |Owner: gwright Type: bug | Status: new Priority: high

Re: [GHC] #4865: Deprecate and remove Prelude.catch and System.IO.Error.{catch, try}

2011-01-04 Thread GHC
#4865: Deprecate and remove Prelude.catch and System.IO.Error.{catch,try} -+-- Reporter: igloo |Owner: Type: proposal | Status: new Priority: normal

Re: [GHC] #4385: Type-level natural numbers

2011-01-04 Thread GHC
#4385: Type-level natural numbers +--- Reporter: diatchki |Owner: diatchki Type: feature request | Status: new Priority: normal |

Re: [GHC] #3927: Incomplete/overlapped pattern warnings + GADTs = inadequate

2011-01-04 Thread GHC
#3927: Incomplete/overlapped pattern warnings + GADTs = inadequate -+-- Reporter: simonpj |Owner: simonpj Type: bug | Status: new Priority: high

Re: [GHC] #4829: build does not respect --with-gcc option

2011-01-04 Thread GHC
#4829: build does not respect --with-gcc option -+-- Reporter: gwright |Owner: gwright Type: bug | Status: merge Priority: high

Re: [GHC] #4854: Validating on a PPC Mac OS X: Fix miscellaneous errors and warnings

2011-01-04 Thread GHC
#4854: Validating on a PPC Mac OS X: Fix miscellaneous errors and warnings +--- Reporter: thorkilnaur |Owner: igloo Type: bug | Status: patch Priority:

[GHC] #4878: Bindist build tools assume libffi.so.5 availability

2011-01-04 Thread GHC
#4878: Bindist build tools assume libffi.so.5 availability ---+ Reporter: vmj | Owner: Type: bug | Status: new Priority: normal | Component:

Re: [Haskell-cafe] GHC 6.8.2 on IA64-Linux platform (Itanium)

2011-01-04 Thread Karel Gardas
Hello Sergei! nice to hear from you! In fact I've been dealing with this issue a little bit and just fixed Adjustor issue myself and then just hour before your email came I discovered your excellent gentoo patches! Kudos to zygoloid for his excellent MBlock.h patch! Also you have saved my

lib for tuples

2011-01-04 Thread Serge D. Mechveliani
People, I define, for example, tuple42(_, y, _, _) = y, setTuple42 (x, _, z, u) y = (x, y, z, u), mapTuple42 f (x, y, z, u) = (x, f y, z, u). But it looks natural to have such functions for tuples in the library. As Haskell-2010 has zip3, zip4 ..., where are the library functions

Re: lib for tuples

2011-01-04 Thread Christian Höner zu Siederdissen
That would not be economical. Lets just say people never use more than 8-tuple and then try to count how many functions you would need. The tuple package on Haskell provides a generic interface to access/manipulate the k'th element of an n-tuple. That should be sufficient and is not subject to

Re: How to compile unregisterised build?

2011-01-04 Thread Simon Marlow
On 31/12/2010 19:53, Karel Gardas wrote: before going to fill some bugreports about broken unregisterised builds I'd like to be sure I understand the topic and know well how to configure it. So, I do have three platforms with Linux OS: - mips64: gcc 4.3.2 + ghc 6.8.2 (debian) - ARMv7: gcc

Re: How to compile unregisterised build?

2011-01-04 Thread Karel Gardas
Hello Simon, scratch that. I've been able to do unregistered build on IA64 and also on Mips64 (ARM still building). The issue I've had was with whitespace after the YES/NO in the mk/build.mk which was caused by the copypaste directly from Wiki. I'm thinking about adding clear note there

[Haskell] CFP: Workshop on Intermediate Representations: deadline Jan 21

2011-01-04 Thread Simon Peyton-Jones
Friends Happy new year! I'm on the PC for Workshop on Intermediate Representations; do consider submitting a paper. Simon WIR 2011: Workshop on Intermediate Representations 2011 http://researchr.org/conference/wir-2011 The intermediate representation is the core of any program transformation

[Haskell] Call for Papers: PAPP 2011 (deadline extended)

2011-01-04 Thread Clemens Grelck
New deadline: January 15, 2011 !! Eighth International Workshop on Practical Aspects of High-Level Parallel Programming (PAPP 2011) part of The International Conference on Computational Science June 1-3, 2011, Tsukuba, Japan http://www.papp-workshop.org AIMS AND SCOPE Computational Science

[Haskell] CfP: 4th Workshop on Approaches and Applications of Inductive Programming (AAIP 2011)

2011-01-04 Thread Emanuel Kitzelmann
CALL FOR PAPERS 4th International Workshop on Approaches and Applications of Inductive Programming AAIP 2011 July 19, 2011, Odense, Denmark http://www.cogsys.wiai.uni-bamberg.de/aaip11/ co-located with the

In opposition of Functor as super-class of Monad

2011-01-04 Thread oleg
I'd like to argue in opposition of making Functor a super-class of Monad. I would argue that superclass constraints are not the right tool for expressing mathematical relationship such that all monads are functors and applicatives. Then argument is practical. It seems that making Functor a

Re: In opposition of Functor as super-class of Monad

2011-01-04 Thread Martijn van Steenbergen
Method C: Define fmap in terms of bind instance Monad m = Functor (Iteratee el m) where fmap = liftM Now you need to do the inspection of Iteratee only once: in the definition of the bind. However, to use liftM as implementation of fmap the superclass constraint of the Functor instance

Re: Functor hierarchy proposal and class system extension proposal

2011-01-04 Thread Conor McBride
Hi On 2 Jan 2011, at 09:29, Malcolm Wallace wrote: See also http://repetae.net/recent/out/classalias.html http://www.haskell.org//pipermail/libraries/2005-March/003494.html http://www.haskell.org//pipermail/haskell-prime/2006-April/001344.html

Re: In opposition of Functor as super-class of Monad

2011-01-04 Thread Dan Doel
On Tuesday 04 January 2011 5:24:21 am o...@okmij.org wrote: Method A: just define bind as usual instance (Functor (Iteratee el m),Monad m) = Monad (Iteratee el m) where return = IE_done IE_done a = f = f a IE_cont e k = f = IE_cont e (\s - k s = docase)

Re: In opposition of Functor as super-class of Monad

2011-01-04 Thread Alexey Khudyakov
On 04.01.2011 13:24, o...@okmij.org wrote: I'd like to argue in opposition of making Functor a super-class of Monad. I would argue that superclass constraints are not the right tool for expressing mathematical relationship such that all monads are functors and applicatives. Then argument is

Re: In opposition of Functor as super-class of Monad

2011-01-04 Thread Tony Morris
I think you'll find a problem using do-notation with your Monad. Tony Morris On 04/01/2011 11:33 PM, Alexey Khudyakov alexey.sklad...@gmail.com wrote: On 04.01.2011 13:24, o...@okmij.org wrote: I'd like to argue in opposition of making Functor a... I think I understood your point. But it

Re: In opposition of Functor as super-class of Monad

2011-01-04 Thread kahl
On Tue, Jan 04, 2011 at 02:24:21AM -0800, o...@okmij.org wrote: I'd like to argue in opposition of making Functor a super-class of Monad. I would argue that superclass constraints are not the right tool for expressing mathematical relationship such that all monads are functors and

Re: Functor hierarchy proposal and class system extension proposal

2011-01-04 Thread Ben Millwood
On Tue, Jan 4, 2011 at 1:21 PM, Conor McBride co...@strictlypositive.org wrote: Jón's proposal was to improve the latter situation by allowing the subclass to specify a default (partial) implementation of a superclass. So we might write  class Applicative f where    return :: x - f x    (*)

Re: Functor hierarchy proposal and class system extension proposal

2011-01-04 Thread Conor McBride
Hi Ben On 4 Jan 2011, at 19:19, Ben Millwood wrote: On Tue, Jan 4, 2011 at 1:21 PM, Conor McBride co...@strictlypositive.org wrote: Jón's proposal was to improve the latter situation by allowing the subclass to specify a default (partial) implementation of a superclass. So we might write

Re: Functor hierarchy proposal and class system extension proposal

2011-01-04 Thread Isaac Dupree
On 01/04/11 19:48, Ben Millwood wrote: There's a fair question in whether we want deviation from the default at all (although I think the answer is probably yes). I think it's reasonable that any type that is an instance of Monad be forced to have ap = (*), for example, so really the only reason

Re: [Haskell-cafe] GHC 6.8.2 on IA64-Linux platform (Itanium)

2011-01-04 Thread Karel Gardas
Hello Sergei! nice to hear from you! In fact I've been dealing with this issue a little bit and just fixed Adjustor issue myself and then just hour before your email came I discovered your excellent gentoo patches! Kudos to zygoloid for his excellent MBlock.h patch! Also you have saved my

Re: [Haskell-cafe] Freeglut

2011-01-04 Thread Henk-Jan van Tuyl
On Tue, 04 Jan 2011 00:21:11 +0100, Eric e...@mathmeth.com wrote: Hi all, I would like to use freeglut instead of GLUT for my Haskell OpenGL program, but when I place the freeglut dll in the program's directory and try to run the program on Windows XP, I get the following error

Re: [Haskell-cafe] Odd profiling results

2011-01-04 Thread Malcolm Wallace
http://www.mega-nerd.com/tmp/ddc-heap-usage-20101231.png We have no particular problem with the 11 peaks (one for each source file) but wonder what the hell is going on in the periods when the memory usage is flat. The peaks I am guessing are largely attributable to parsing the source

Re: [Haskell-cafe] How about Haskell Golf just like vimgolf.com

2011-01-04 Thread Markus Läll
On Mon, Jan 3, 2011 at 6:19 PM, Ertugrul Soeylemez e...@ertes.de wrote: Alex Kropivny alex.kropi...@gmail.com wrote: Could something like code abstraction be done instead? Haskell lends itself to solving problems in really generic, high level ways that reveal a LOT about the underlying

Re: [Haskell-cafe] Template Haskell a Permanent solution?

2011-01-04 Thread Christian Maeder
Am 27.12.2010 08:44, schrieb Henning Thielemann: On Mon, 27 Dec 2010, Jonathan Geddes wrote: #1 Parse a string at compile-time so that a custom syntax for representing data can be used. At the extreme, this data might even be an EDSL. I think it would be enough, if the compiler could be

[Haskell-cafe] GHC.Paths (libDir)

2011-01-04 Thread Serguey Zefirov
I am looking at GHC API examples page: http://www.haskell.org/haskellwiki/GHC/As_a_library One of examples use import GHC.Paths ( libDir) and mentions that it needs -package ghc-paths option. I tried the second example with latest Haskell Platform (Windows). I commented out libDir = /usr... as

[Haskell-cafe] GHC.Paths (libDir)

2011-01-04 Thread Serguey Zefirov
I figured that out, thank you if you are writing answer. ;) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Template Haskell a Permanent solution?

2011-01-04 Thread Dominique Devriese
All, 2010/12/27 Jonathan Geddes geddes.jonat...@gmail.com: I see TH used most for the following tasks: #1 Parse a string at compile-time so that a custom syntax for representing data can be used. At the extreme, this data might even be an EDSL. #2 Provide instances automatically. Just a

Re: [Haskell-cafe] Template Haskell a Permanent solution?

2011-01-04 Thread Henning Thielemann
Christian Maeder schrieb: Am 27.12.2010 08:44, schrieb Henning Thielemann: On Mon, 27 Dec 2010, Jonathan Geddes wrote: #2 Provide instances automatically. http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/generic-classes.html I see the text below and have no idea where the

Re: [Haskell-cafe] Template Haskell a Permanent solution?

2011-01-04 Thread Christian Maeder
Am 04.01.2011 15:48, schrieb Henning Thielemann: Christian Maeder schrieb: Am 27.12.2010 08:44, schrieb Henning Thielemann: On Mon, 27 Dec 2010, Jonathan Geddes wrote: #2 Provide instances automatically. http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/generic-classes.html I see

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-01-04 Thread Eugene Kirpichov
Hi Brandon, I would happily use a better online presentation sharing tool if I knew of one - I am a novice in this respect. Which do you suggest? 02.01.2011, в 3:43, Brandon S Allbery KF8NH allb...@ece.cmu.edu написал(а): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 still catching up

Re: [Haskell-cafe] [Haskell] ANNOUNCE: haskell-src-meta 0.3

2011-01-04 Thread Ben Millwood
It seems I wasn't subscribed to haskell-cafe so this reply didn't get through (sorry for sending this twice, Felipe). I've now subscribed with delivery turned off for -cafe so if you want me to read a response be sure to address me directly :) On Tue, Jan 4, 2011 at 5:08 AM, Ben Millwood

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-01-04 Thread Eugene Kirpichov
Thanks for pointing out the issue, Lars - though I personally do not think that 2mb is a sizeable chunk by measures of most modern mail hostings, and though the offending letter can simply be deleted, I agree that for some purposes attaching megabyte-sized files to wide mailing list postings

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-01-04 Thread Henning Thielemann
Eugene Kirpichov schrieb: I would happily use a better online presentation sharing tool if I knew of one - I am a novice in this respect. Which do you suggest? For me a plain PDF file, say on code.haskell.org or projects.haskell.org is the best way.

Re: [Haskell-cafe] Odd profiling results

2011-01-04 Thread Erik de Castro Lopo
Malcolm Wallace wrote: The peaks I am guessing are largely attributable to parsing the source files. Then, once the source has been converted to an AST, the DDC compiler is presumably doing some analysis before moving on to the next file? I think these are the well-behaved flat bits.

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-01-04 Thread Eugene Kirpichov
Thanks Hennig, this sounds very good indeed! I haven't thought of this. 04.01.2011, в 22:51, Henning Thielemann schlepp...@henning-thielemann.de написал(а): Eugene Kirpichov schrieb: I would happily use a better online presentation sharing tool if I knew of one - I am a novice in this

Re: [Haskell-cafe] tplot and splot - analyst's swiss army knifes for visualizing log files

2011-01-04 Thread Lars Viklund
On Tue, Jan 04, 2011 at 10:44:10PM +0200, Eugene Kirpichov wrote: Thanks for pointing out the issue, Lars - though I personally do not think that 2mb is a sizeable chunk by measures of most modern mail hostings, and though the offending letter can simply be deleted, I agree that for some

[Haskell-cafe] Trouble installing FileManipCompat

2011-01-04 Thread Tony Miller
Hi, I'm trying to install FileManipCompat(well, really HStringTemplateHelpers, but the error is from FileManipCompat) and I'm getting this error: [1 of 1] Compiling System.FilePath.FindCompat ( System/FilePath/FindCompat.hs, dist/build/System/FilePath/FindCompat.o )

Re: [Haskell-cafe] Trouble installing FileManipCompat

2011-01-04 Thread Daniel Fischer
On Wednesday 05 January 2011 01:54:36, Tony Miller wrote: Hi, I'm trying to install FileManipCompat(well, really HStringTemplateHelpers, but the error is from FileManipCompat) and I'm getting this error: [1 of 1] Compiling System.FilePath.FindCompat ( System/FilePath/FindCompat.hs,

[Haskell-cafe] UTF-8 BOM

2011-01-04 Thread Tony Morris
I am reading files with System.IO.readFile. Some of these files start with a UTF-8 Byte Order Marker (0xef 0xbb 0xbf). For some functions that process this String, this causes choking so I drop the BOM as shown below. This feels particularly hacky, but I am not in control of many of these

[Haskell-cafe] Building lambdabot

2011-01-04 Thread Joe Bruce
I've had a bit of an adventure trying to build and run lambdabothttp://hackage.haskell.org/package/lambdabot-4.2.2.1 on my box. 'cabal install lambdabot' does not work. It states it's not GHC 6.12 (and certainly not 7.0) compatible, but I tried 6.12 anyway and got nowhere. Next, I tried 6.10

Re: [Haskell-cafe] UTF-8 BOM

2011-01-04 Thread Antoine Latter
On Tue, Jan 4, 2011 at 7:08 PM, Tony Morris tonymor...@gmail.com wrote: I am reading files with System.IO.readFile. Some of these files start with a UTF-8 Byte Order Marker (0xef 0xbb 0xbf). For some functions that process this String, this causes choking so I drop the BOM as shown below. This

Re: [Haskell-cafe] UTF-8 BOM

2011-01-04 Thread Albert Y. C. Lai
On 11-01-04 08:08 PM, Tony Morris wrote: I am reading files with System.IO.readFile. Some of these files start with a UTF-8 Byte Order Marker (0xef 0xbb 0xbf). There is System.IO.utf8_bom for that. Of course, then you can't use readFile; but you can use openFile and hGetContents.