Re: [GHC] #5539: GHC panic - Simplifier ticks exhausted
#5539: GHC panic - Simplifier ticks exhausted -+-- Reporter: hvr | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler|Version: 7.3 Resolution: | Keywords: Testcase: | Blockedby: Difficulty: | Os: Linux Blocking: | Architecture: x86_64 (amd64) Failure: Compile-time crash | -+-- Changes (by simonpj): * status: new = infoneeded Comment: Well that is most odd. I cannot reproduce the failure with tc095. If it happens again, can you do `-dverbose-core2core -ddump-simpl-stats -ddump- occur-anal`? Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5539#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #5584: ghc -odir is incompatible with .hs-boot files for hierarchical modules
#5584: ghc -odir is incompatible with .hs-boot files for hierarchical modules ---+ Reporter: georgevdd | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.0.4 |Keywords: Testcase: | Blockedby: Os: Linux |Blocking: Architecture: x86_64 (amd64) | Failure: Compile-time crash ---+ == Steps to reproduce == 1) Adapt the example of [http://www.haskell.org/ghc/docs/latest/html/users_guide/separate- compilation.html#mutual-recursion how to compile mutually recursive modules] so that the modules involved have hierarchical names: File S/A.hs: {{{ module S.A where import S.B( TB(..) ) newtype TA = MkTA Int f :: TB - TA f (MkTB x) = MkTA x }}} File S/A.hs-boot: {{{ module S.A where newtype TA = MkTA Int }}} File S/B.hs: {{{ module S.B where import {-# SOURCE #-} S.A( TA(..) ) data TB = MkTB !Int g :: TA - TB g (MkTA x) = MkTB x }}} 2) Compile as the example suggests, but with -odir: {{{ mkdir out ghc -odir out -c S/A.hs-boot }}} == Expected behaviour == GHC silently creates the directory out/S and then emits the file A.o-boot in that directory. == Observed behaviour == GHC produces the error message: {{{ touch: cannot touch `out/S/A.o-boot': No such file or directory }}} Note: this happens with ghc --make as well. == Workaround == Create the directory out/S beforehand. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5584 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #5585: Wrong links in the docs for Random
#5585: Wrong links in the docs for Random -+-- Reporter: MikolajKonarski | Owner: Type: bug | Status: new Priority: normal| Component: Documentation Version: 7.2.1 |Keywords: Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: Documentation bug -+-- The following (and a few other) link is wrong {{{ http://www.haskell.org/ghc/docs/latest/html/libraries/haskell98-2.0.0.0 /System-Random.html#Burton }}} The problems seems to be due to the move from System.Random to Random. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5585 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #4288: Poor -fspec-constr-count=n warning messages
#4288: Poor -fspec-constr-count=n warning messages -+-- Reporter: igloo |Owner: Type: bug | Status: new Priority: normal|Milestone: 7.4.1 Component: Compiler | Version: 6.13 Keywords:| Testcase: Blockedby:| Difficulty: Os: Unknown/Multiple | Blocking: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by Blaisorblade): * cc: p.giarrusso@… (added) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4288#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #5380: Too general type with Arrows extension
#5380: Too general type with Arrows extension ---+ Reporter: sebf|Owner: ross Type: bug | Status: new Priority: highest |Milestone: 7.4.1 Component: Compiler| Version: 7.0.3 Keywords: | Testcase: Blockedby: | Difficulty: Os: Linux | Blocking: Architecture: x86_64 (amd64) | Failure: GHC accepts invalid program ---+ Comment(by ross@…): commit 7437af6f36b8201fba7a9dea98685da4d35f167f {{{ Author: Ross Paterson r...@soi.city.ac.uk Date: Wed Oct 26 18:23:57 2011 +0100 fix#5380: arrows if command given too general a type There were two bugs with the implementation of rebindable syntax, so I adapted the code for if-expressions. Also noted that rebinding of if is a bit more restricted in the arrows case. compiler/typecheck/TcArrows.lhs | 29 - 1 files changed, 20 insertions(+), 9 deletions(-) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5380#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #5380: arrows if command given too general a type (was: Too general type with Arrows extension)
#5380: arrows if command given too general a type --+- Reporter: sebf | Owner: ross Type: bug | Status: closed Priority: highest | Milestone: 7.4.1 Component: Compiler |Version: 7.0.3 Resolution: fixed| Keywords: Testcase: | Blockedby: Difficulty: | Os: Linux Blocking: | Architecture: x86_64 (amd64) Failure: GHC accepts invalid program | --+- Changes (by ross): * status: new = closed * resolution: = fixed -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5380#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[GHC] #5586: haddock: panic! (the 'impossible' happened) (GHC version ...) initDs IOEnv failure
#5586: haddock: panic! (the 'impossible' happened) (GHC version ...) initDs IOEnv failure -+-- Reporter: thorkilnaur | Owner: Type: bug | Status: new Priority: normal| Component: Compiler Version: 7.2.1 |Keywords: Testcase:| Blockedby: Os: Unknown/Multiple |Blocking: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- The tn23 builder {{{ $ uname -a Darwin thorkil-naurs-intel-mac-mini.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 $ }}} presently fails with the message {{{ /Users/thorkilnaur/tn/builders/GHCBuilder/tn23/builder/tempbuild/build/inplace/bin/haddock --odir=libraries/dph/dph-seq/dist-install/doc/html/dph-seq --no-tmp- comp-dir --dump-interface=libraries/dph/dph-seq/dist-install/doc/html/dph- seq/dph-seq.haddock --html --hoogle --title=dph-seq-0.5.1.1: Data structures for the Data Parallel Haskell vectoriser --prologue=libraries/dph/dph-seq/dist-install/haddock-prologue.txt --hide=Data.Array.Parallel.PArr --hide=Data.Array.Parallel.PArray.Base --hide=Data.Array.Parallel.PArray.Scalar --hide=Data.Array.Parallel.PArray.ScalarInstances --hide=Data.Array.Parallel.PArray.PRepr --hide=Data.Array.Parallel.PArray.PReprInstances --hide=Data.Array.Parallel.PArray.PData --hide=Data.Array.Parallel.PArray.PDataInstances --hide=Data.Array.Parallel.PArray.Types --hide=Data.Array.Parallel.Lifted.PArray --hide=Data.Array.Parallel.Lifted.Unboxed --hide=Data.Array.Parallel.Lifted.Scalar --hide=Data.Array.Parallel.Lifted.TH.Repr --hide=Data.Array.Parallel.Lifted.Closure --hide=Data.Array.Parallel.Lifted.Combinators --hide=Data.Array.Parallel.Prelude.Tuple --hide=Data.Array.Parallel.Prelude.Bool --read- interface=../array-0.3.0.3,../array-0.3.0.3/src/%{MODULE/./-}.html\#%{NAME},libraries/array /dist-install/doc/html/array/array.haddock --read- interface=../base-4.4.0.0,../base-4.4.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/base /dist-install/doc/html/base/base.haddock --read-interface=../dph- base-0.5.2.0,../dph- base-0.5.2.0/src/%{MODULE/./-}.html\#%{NAME},libraries/dph/dph-base/dist- install/doc/html/dph-base/dph-base.haddock --read-interface=../dph-prim- seq-0.5.2.0,../dph-prim- seq-0.5.2.0/src/%{MODULE/./-}.html\#%{NAME},libraries/dph/dph-prim-seq /dist-install/doc/html/dph-prim-seq/dph-prim-seq.haddock --read- interface=../ghc-7.3.20111026,../ghc-7.3.20111026/src/%{MODULE/./-}.html\#%{NAME},compiler/stage2/doc/html/ghc/ghc.haddock --read- interface=../random-1.0.1.1,../random-1.0.1.1/src/%{MODULE/./-}.html\#%{NAME},libraries/random /dist-install/doc/html/random/random.haddock --read-interface=../template- haskell-2.6.0.0,../template- haskell-2.6.0.0/src/%{MODULE/./-}.html\#%{NAME},libraries/template-haskell /dist-install/doc/html/template-haskell/template-haskell.haddock --optghc=-H32m --optghc=-O --optghc=-package-name --optghc=dph-seq-0.5.1.1 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/dph/dph-seq /../dph-common --optghc=-ilibraries/dph/dph-seq/dist-install/build --optghc=-ilibraries/dph/dph-seq/dist-install/build/autogen --optghc=-Ilibraries/dph/dph-seq/dist-install/build --optghc=-Ilibraries/dph/dph-seq/dist-install/build/autogen --optghc=-Ilibraries/dph/dph-seq/. --optghc=-optP-include --optghc=-optPlibraries/dph/dph-seq/dist- install/build/autogen/cabal_macros.h --optghc=-package --optghc=array-0.3.0.3 --optghc=-package --optghc=base-4.4.0.0 --optghc=-package --optghc=dph-base-0.5.2.0 --optghc=-package --optghc =dph-prim-seq-0.5.2.0 --optghc=-package --optghc=ghc-7.3.20111026 --optghc=-package --optghc=random-1.0.1.1 --optghc=-package --optghc =template-haskell-2.6.0.0 --optghc=-Odph --optghc=-funbox-strict-fields --optghc=-fcpr-off --optghc=-fdph-this --optghc=-package-name --optghc =dph-seq --optghc=-XHaskell98 --optghc=-XTypeFamilies --optghc=-XGADTs --optghc=-XRankNTypes --optghc=-XBangPatterns --optghc=-XMagicHash --optghc=-XUnboxedTuples --optghc=-XTypeOperators --optghc=-O2 --optghc =-no-user-package-conf --optghc=-rtsopts --optghc=-odir --optghc=libraries/dph/dph-seq/dist-install/build --optghc=-hidir --optghc=libraries/dph/dph-seq/dist-install/build --optghc=-stubdir --optghc=libraries/dph/dph-seq/dist-install/build --optghc=-hisuf --optghc=hi --optghc=-osuf --optghc=o --optghc=-hcsuf --optghc=hc --source-module=src/%{MODULE/./-}.html --source- entity=src/%{MODULE/./-}.html#%{NAME} libraries/dph/dph-seq/../dph- common/Data/Array/Parallel.hs libraries/dph/dph-seq/../dph- common/Data/Array/Parallel/Lifted.hs libraries/dph/dph-seq/../dph- common/Data/Array/Parallel/Prelude.hs
Re: [GHC] #4258: Finish new codegen
#4258: Finish new codegen -+-- Reporter: igloo |Owner: Type: task | Status: new Priority: high |Milestone: 7.6.1 Component: Compiler | Version: 6.12.3 Keywords:| Testcase: Blockedby:| Difficulty: Os: Unknown/Multiple | Blocking: 783, 1246, 1466, 1498, 2253, 3132, 3462, 3940, 4065, 4505, 5156 Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by lelf): * cc: anton.nik@… (added) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4258#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #5586: haddock: panic! (the 'impossible' happened) (GHC version ...) initDs IOEnv failure
#5586: haddock: panic! (the 'impossible' happened) (GHC version ...) initDs IOEnv failure ---+ Reporter: thorkilnaur | Owner: Type: bug | Status: closed Priority: normal| Milestone: Component: Compiler |Version: 7.2.1 Resolution: fixed | Keywords: Testcase:| Blockedby: Difficulty:| Os: Unknown/Multiple Blocking:| Architecture: Unknown/Multiple Failure: None/Unknown | ---+ Changes (by igloo): * status: new = closed * resolution: = fixed Comment: Thanks for the report; should be fixed by: {{{ commit 0f51b3ebcb84f786207121e0612af6bbaeaa6e92 Author: Ian Lynagh ig...@earth.li Date: Wed Oct 26 17:37:35 2011 +0100 Revert More updates to Safe Haskell to implement new design (done!). This reverts commit bb0eb57e329bcdd781e24b0d86993a0df25beed8. commit b558599b9e492fd6d349aa60306b788dbaf9f28c Author: Ian Lynagh ig...@earth.li Date: Wed Oct 26 17:37:27 2011 +0100 Revert Fix some validation errors This reverts commit 4e2121f4fa33743d0acb42506b4d34952a7e4c80. }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5586#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #5505: Program runs faster with profiling than without
#5505: Program runs faster with profiling than without -+-- Reporter: simonpj |Owner: simonmar Type: bug | Status: new Priority: high |Milestone: 7.4.1 Component: Compiler | Version: 7.0.3 Keywords:| Testcase: Blockedby:| Difficulty: Os: Unknown/Multiple | Blocking: Architecture: Unknown/Multiple | Failure: None/Unknown -+-- Changes (by lelf): * cc: anton.nik@… (added) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5505#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [Haskell] cabal conflicting rules
On Wed, Oct 26, 2011 at 1:26 AM, Claudio Nieder priv...@claudio.ch wrote: Hi, many thanks to all who answered my post, I learned a lot by reading them and the referenced web pages. You probably have some packages of yours installed as user and some others globally. Have a look at: http://www.haskell.org/cabal/FAQ.html#dependencies-conflict This explains well why I got the strange error. I recommend that as soon as you have a running Haskell Platform to always install new packages with cabal install ... --user This is actually what I did. But this is not fool proof (and I was here the fool), because I can still do harm by asking cabal to install packages - which get registered in the user package db - that are part of ghc - thus registered also in the global db. So I decided now to go the all global route - which is not really global as I did install ghc anyway in my own directory - so that there is only one package db. I don't think this is foolproof, either. Correct me, anyone else, if I'm wrong, but in some cases cabal will want to rebuild your packages that came with GHC; sometimes this can involve breaking a package that cannot be rebuilt (e.g. the ghc package depends on the directory package, if cabal tried to reinstall that for some reason, the ghc package would be broken). The advantage of doing everything in the user space is that it's relatively less painful to undo mistakes, because you can just unregister clones; you might break some packages, but they will all be from Hackage and hence in principle replaceable. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] ANNOUNCE: HasGP library 0.1
I would like to announce the initial release of the HasGP library for Gaussian process inference. HasGP is a library, implemented in Haskell, providing algorithms for supervised regression and classification using Gaussian processes (GPs). It is an experimental library, the aim of which is to explore functional programming as a means of implementing machine learning systems, as opposed to the predominant imperative/object-oriented approach. The library is available on Hackage and further information is available at the project's web site: http://www.cl.cam.ac.uk/~sbh11/HasGP/index.html Best wishes, Sean. --- Dr Sean B HoldenUniversity of Cambridge University Senior Lecturer Computer Laboratory William Gates Building Phone: (01223) 763725 15 JJ Thomson Avenue Email: sb...@cl.cam.ac.uk Cambridge CB3 0FD Web: http://www.cl.cam.ac.uk/users/sbh11 United Kingdom --- ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] ANN: Monad.Reader Issue 19
I am pleased to announce that Issue 19 of The Monad.Reader, a special issue on parallelism and concurrency, is now available: http://themonadreader.files.wordpress.com/2011/10/issue19.pdf Issue 19 consists of the following three articles: * Mighttpd – a High Performance Web Server in Haskell by Kazu Yamamoto * High Performance Haskell with MPI by Bernie Pope and Dmitry Astapov * Coroutine Pipelines by Mario Blažević Feel free to browse the source files. You can check out the entire repository using darcs: darcs get http://code.haskell.org/~byorgey/TMR/Issue19 If you’d like to write something for Issue 20, please get in touch. The deadline will likely be in December; more details will be forthcoming. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] [Haskell-cafe] ANN: Monad.Reader Issue 19
On 26 October 2011 21:17, Brent Yorgey byor...@seas.upenn.edu wrote: I am pleased to announce that Issue 19 of The Monad.Reader, a special issue on parallelism and concurrency, is now available: Thanks, I always really enjoy The Monad.Reader. Issue 19 consists of the following three articles: * Mighttpd – a High Performance Web Server in Haskell by Kazu Yamamoto Kazu, really interesting article! I have one question regarding your use of atomicModifyIORef: x - atomicModifyIORef ref (\_ - (tmstr, ())) x `seq` return () Can't you write that as just: writeIORef ref tmstr? If you're not using the previous value of the IORef there's no chance of inconsistency. I looked in the git repository of mighttpd2 and it seems that in the FileCache module we can make a similar change by rewriting: remover :: IORef Cache - IO () remover ref = do threadDelay 1000 _ - atomicModifyIORef ref (\_ - (M.empty, ())) remover ref to: remover :: IORef Cache - IO () remover ref = forever $ do threadDelay 1000 writeIORef ref M.empty Regards, Bas ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] haskell.org committee: first-year report
This report is also posted to http://haskellorg.wordpress.com/2011/10/26/first-year-report/ The haskell.org committee is reaching the end of its first year of operation, so it's time to look back and see what has been achieved. *haskell.org incorporation* The most important work for the year has been trying to get the ownership of haskell.org resources -- principally some money from our GSoC participation, and various machines -- on a sounder footing. At the moment, Galois is kindly holding funds on behalf of haskell.org. However, this causes them administrative difficulties and it would also be better for haskell.org for them to be held separately in a vehicle with tax-free status (at least in the US) that can also accept donations. The main option we have been exploring is joining the Software Freedom Conservancy (http://www.sfconservancy.org http://www.sfconservancy.org/). After seeking the community's consent, we have contacted them to begin the application process. Unfortunately they are currently rather overworked and as they prioritise work for existing projects over accepting new ones, we do not yet know when there will be progress with this. In the meantime we are also investigating joining an alternative, Software in the Public Interest (http://www.spi-inc.org http://www.spi-inc.org/). Discussions about this option are still ongoing. The committee would like to thank Jason Dagit who has been helping us to make progress on this issue over the last few months, with the support of his employer Galois. *Subdomain policy* In response to various requests for subdomains of haskell.org, we have formulated the following policy, now (belatedly!) documented athttp://www.haskell.org/haskellwiki/Haskell.org_domain#Policy_on_adding_new_subdomains /Subdomains should be used for *services *rather than *content*/. Content should be normally be hosted at subpaths of http://www.haskell.org http://www.haskell.org/ So for example a Haskell graphics related website should normally go athttp://www.haskell.org/graphics, rather than http://graphics.haskell.org http://graphics.haskell.org/. In contrast, during the year, we did add revdeps.hackage.haskell.org for a hackage reverse-dependency lookup service, and of course hackage.haskell.org already exists. Clearly the line between services and content, and indeed the precise definitions of each, is something of a grey area, and we are certainly happy to be flexible particularly if there are technical or other reasons for doing things one way. Our overall goal is to minimise unnecessary proliferation of subdomains and to try to keep the haskell.org domain reasonably well organised, while still helping people do useful things with it. *Move of www.haskell.org http://www.haskell.org/ to a new dedicated host* **For many years, www.haskell.org http://www.haskell.org/ was generously hosted by Paul Hudak at Yale. This was becoming increasingly expensive for him so in late 2010 we moved to a new dedicated host (lambda.haskell.org). At the same time we put in place a policy that lambda would host only meta community resources, thus limiting the number of people who need to have accounts on it. For some time before this new project content had been created on community.haskell.org anyway, and this move gave us the opportunity to move legacy sites such as gtk2hs over to community. In addition, community.haskell.org is now also a VM running on the same machine. The committee as a whole's involvement in this was only to approve the change -- the sysadmin team did all the actual work. *General* The haskell.org infrastructure as a whole is still in a rather tenuous state. While the extreme unreliability we saw for a while has improved with the reorganisation , the level of sysadmin resource/involvement is still inadequate. The committee is open to ideas on how to improve the situation. Unfortunately we can't provide a full statement of haskell.org's accounts with this report; we are doing our best to track down the necessary information and will produce them as soon as possible. Better control and visibility of our finances and assets is of course one of the benefits we are seeking by affiliating with SFC or SPI. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
[Haskell] Haskell Weekly News: Issue 205
Welcome to issue 205 of the HWN, a newsletter covering developments in the Haskell community. This release covers the week of October 16 to 22, 2011. You can find an HTML version of this issue at: http://contemplatecode.blogspot.com/2011/10/haskell-weekly-news-issue-205.html Announcements Ian Lynah sent out a call for nominations for the haskell.org committee. See the link for details on how to submit a nomination. Nominations close on October 29. [1] http://goo.gl/J9J6H New and Updated Projects * netwire (Ertugrul Soeylemez; 1.2.7) [2] http://goo.gl/ULujm Quotes of the Week * kmc: i just used Hayoo to see if anyone implemented this function and it came back with one of my own libraries * JoeyA: LLVM: The easy-to-use compiler infrastructure nobody knows how to use. * kmc: Haskell isn't really designed by mathematicians. it's designed by people who programmers would consider to be mathematicians and mathematicians would consider to be programmers * Cale: foldr is the real fold; foldl is an imposter * @remember hey daniel kmc wants his uploads featured on HWN [edit note: oops, I guess that was meant for me :) +1 for new and inventive ways to communicate!] Top Reddit Stories * Tech-talk about Haskell at Google: Haskell Amuse-Bouche Domain: youtu.be, Score: 86, Comments: 5 On Reddit: [3] http://goo.gl/Pf0NZ Original: [4] http://goo.gl/NPZ17 * Deprecate Prelude.head and partial functions Domain: chrisdone.com, Score: 58, Comments: 60 On Reddit: [5] http://goo.gl/Yat8J Original: [6] http://goo.gl/NyiRO * What does your company use Haskell for? I'll go first. Domain: self.haskell, Score: 51, Comments: 38 On Reddit: [7] http://goo.gl/VOfrO Original: [8] http://goo.gl/VOfrO * I am working on a functional web-programming language as a senior thesis. What do you think so far? Domain: elm-lang.org, Score: 40, Comments: 58 On Reddit: [9] http://goo.gl/6PrQM Original: [10] http://goo.gl/l3odM * Dear Redditor Emac-loving Haskeller(s): what cool emacs Haskell Mode (or custom) features do you use? Domain: self.haskell, Score: 40, Comments: 7 On Reddit: [11] http://goo.gl/LKW0A Original: [12] http://goo.gl/LKW0A * Macros in Haskell Domain: playingwithpointers.com, Score: 38, Comments: 0 On Reddit: [13] http://goo.gl/pwfjt Original: [14] http://goo.gl/bSYN8 * Type-safe event-based programming Domain: jaspervdj.be, Score: 35, Comments: 0 On Reddit: [15] http://goo.gl/gyj9J Original: [16] http://goo.gl/ZBC55 * Yesod excellent ideas Domain: yannesposito.com, Score: 34, Comments: 5 On Reddit: [17] http://goo.gl/ikFJV Original: [18] http://goo.gl/UgBaC * AI Challenge: Ants. Haskell support is only for GHC 6.12. Shall we lobby for 7.0? Domain: aichallenge.org, Score: 28, Comments: 24 On Reddit: [19] http://goo.gl/ShqaM Original: [20] http://goo.gl/O2YOp * Why not Haskell? Domain: neugierig.org, Score: 27, Comments: 26 On Reddit: [21] http://goo.gl/INmRp Original: [22] http://goo.gl/wK3U3 Top StackOverflow Questions * What are some compelling use cases for dependent method types? votes: 44, answers: 2 Read on SO: [23] http://goo.gl/2Xmgu * Why monads? How does it resolve side-effects? votes: 14, answers: 7 Read on SO: [24] http://goo.gl/UJimh * How does Haskell printf work? votes: 13, answers: 1 Read on SO: [25] http://goo.gl/351dE * Why is my genetic algorithm seemingly behaving randomly? votes: 10, answers: 1 Read on SO: [26] http://goo.gl/a5FtH * What are the benefits of applicative parsing over monadic parsing? votes: 10, answers: 4 Read on SO: [27] http://goo.gl/UEkpx * Fixity of backtick operators? votes: 9, answers: 1 Read on SO: [28] http://goo.gl/nwji2 * Bit Size of GHC's Int Type votes: 8, answers: 2 Read on SO: [29] http://goo.gl/DDtFZ * Simple word count in haskell votes: 8, answers: 4 Read on SO: [30] http://goo.gl/ZAYyT * existential search and query without the fuss votes: 8, answers: 2 Read on SO: [31] http://goo.gl/Fnes6 * How to selectively link certain system libraries statically into Haskell program binary? votes: 8, answers: 2 Read on SO: [32] http://goo.gl/HjPTc Until next time, Daniel Santa Cruz References 1. http://permalink.gmane.org/gmane.comp.lang.haskell.general/18983 2. http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/93163 3. http://youtu.be/b9FagOVqxmI 4. http://www.reddit.com/r/haskell/comments/lkiiw/techtalk_about_haskell_at_google_haskell/ 5. http://chrisdone.com/posts/2011-10-17-boycott-head.html 6. http://www.reddit.com/r/haskell/comments/lf71l/deprecate_preludehead_and_partial_functions/ 7.
Re: [Haskell-cafe] Open CV or alternate image processing library for Haskell on windows?
Hi, Sorry for reopening an old thread (May 2011), but I just want to report that I'm using HOpenCV and cv-combinators under windows and I just wanted to tell you that it works just fine. I downloaded the opencv2 libraries as stated on this thread, and I'm successfully building software that works both on Windows (XP and 7, both x86) and Linux (x86 amd64). The software will be released in a few days, if everything goes well. You'll be able to find it at keera.es, but I'll let you know when I release it anyway. Cheers, Ivan Perez. PS. I just re-subscribed to this mailing list. I can't reply to the old messages (don't have them), and I can't set the old Message-ID with gmail, so I'm providing a link to the original message. [1] http://www.mail-archive.com/haskell-cafe@haskell.org/msg89834.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Reminder Munich Haskell
Hi all, this evening, Haskeller meet at Cafe Puck at 19h30: www.haskell-munich.de See you, Heinrich -- -- hoerde...@funktional.info www.funktional.info -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Operator precedence and associativity with Polyparse
Am 26.10.2011 01:49, schrieb Tom Hawkins: Can someone provide guidance on how handle operator precedence and associativity with Polyparse? Do you mean parsing something like 1 + 2 * 3 ? I don't think there's any real difference in using Polyparse vs Parsec for this, except for doing p `orElse` q rather than try p| q. Actually, I was looking for something equivalent to Text.ParserCombinators.Parsec.Expr.buildExpressionParser. I suppose I should learn how Parsec implements this under the hood. I would do it as described under chainl1 in http://hackage.haskell.org/packages/archive/parsec2/1.0.0/doc/html/Text-ParserCombinators-Parsec-Combinator.html I believe Parsec.Expr cannot handle a prefix operator (i.e. unary minus) properly, that has lower precedence than an infix operator (i.e. ^ power). If it can parse -x^2 as -(x^2) then if cannot parse x^ -2 as x^(-2). Cheers Christian -Tom ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Is it possible to get the information of instances of a type?
Hi, If this was in ruby or other languages that support reflection, it won't be a question. But in Haskell, could I write a code to list the classes that a type instanced? TemplateHaskell as well. -- 竹密岂妨流水过 山高哪阻野云飞 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: If this was in ruby or other languages that support reflection, it won't be a question. But in Haskell, could I write a code to list the classes that a type instanced? In regular Haskell, type information is completely lost after compilation, so you can't recover any of that. There is no run-time type information like in languages with OO inheritance. However, types can choose to provide type information through the Typeable type class (Data.Typeable). Generally you wouldn't want to use it, if you write Haskell properly (i.e. if you don't try to write Ruby in Haskell). TemplateHaskell as well. I'm not sure about that one. Greets, Ertugrul -- nightmare = unsafePerformIO (getWrongWife = sex) http://ertes.de/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
On Wed, Oct 26, 2011 at 6:53 AM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: But in Haskell, could I write a code to list the classes that a type instanced? TemplateHaskell as well. It's possible with TemplateHaskell. Look at classInstances and the ClassI data constructor. http://haskell.org/ghc/docs/7.0.4/html/libraries/template-haskell-2.5.0.0/Language-Haskell-TH.html#v:classInstances ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
Can't be done. Even if this particular module doesn't contain instance Class Type, it's quite possible that the said instance would be defined in another module, about which this one knows nothing about. On the other hand, what would you do with that information? Отправлено с iPad 26.10.2011, в 17:53, Magicloud Magiclouds magicloud.magiclo...@gmail.com написал(а): Hi, If this was in ruby or other languages that support reflection, it won't be a question. But in Haskell, could I write a code to list the classes that a type instanced? TemplateHaskell as well. -- 竹密岂妨流水过 山高哪阻野云飞 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
On Wed, Oct 26, 2011 at 09:15:41AM -0700, Nathan Howell wrote: On Wed, Oct 26, 2011 at 6:53 AM, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: But in Haskell, could I write a code to list the classes that a type instanced? TemplateHaskell as well. It's possible with TemplateHaskell. Look at classInstances and the ClassI data constructor. http://haskell.org/ghc/docs/7.0.4/html/libraries/template-haskell-2.5.0.0/Language-Haskell-TH.html#v:classInstances No, this lists all the instances of a class. OP asked for the classes of which a given type is an instace. Presumably it is possible, since Haddock does it! In the documentation generated for a type it lists classes of which the type is an instance. So you might want to look at how Haddock does it. I suspect the only way is through the GHC API. -Brent ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
On Wed, Oct 26, 2011 at 09:10:23PM +0400, MigMit wrote: Can't be done. Even if this particular module doesn't contain instance Class Type, it's quite possible that the said instance would be defined in another module, about which this one knows nothing about. That doesn't mean it can't be done, only that you would have to be explicit about which modules to look in. -Brent ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] ANN: Monad.Reader Issue 19
I am pleased to announce that Issue 19 of The Monad.Reader, a special issue on parallelism and concurrency, is now available: http://themonadreader.files.wordpress.com/2011/10/issue19.pdf Issue 19 consists of the following three articles: * Mighttpd – a High Performance Web Server in Haskell by Kazu Yamamoto * High Performance Haskell with MPI by Bernie Pope and Dmitry Astapov * Coroutine Pipelines by Mario Blažević Feel free to browse the source files. You can check out the entire repository using darcs: darcs get http://code.haskell.org/~byorgey/TMR/Issue19 If you’d like to write something for Issue 20, please get in touch. The deadline will likely be in December; more details will be forthcoming. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] ANN: Monad.Reader Issue 19
On 26 October 2011 21:17, Brent Yorgey byor...@seas.upenn.edu wrote: I am pleased to announce that Issue 19 of The Monad.Reader, a special issue on parallelism and concurrency, is now available: Thanks, I always really enjoy The Monad.Reader. Issue 19 consists of the following three articles: * Mighttpd – a High Performance Web Server in Haskell by Kazu Yamamoto Kazu, really interesting article! I have one question regarding your use of atomicModifyIORef: x - atomicModifyIORef ref (\_ - (tmstr, ())) x `seq` return () Can't you write that as just: writeIORef ref tmstr? If you're not using the previous value of the IORef there's no chance of inconsistency. I looked in the git repository of mighttpd2 and it seems that in the FileCache module we can make a similar change by rewriting: remover :: IORef Cache - IO () remover ref = do threadDelay 1000 _ - atomicModifyIORef ref (\_ - (M.empty, ())) remover ref to: remover :: IORef Cache - IO () remover ref = forever $ do threadDelay 1000 writeIORef ref M.empty Regards, Bas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Really impossible to reinstall `base' using cabal?
Hi, Am Mittwoch, den 26.10.2011, 13:10 +1100 schrieb Ivan Lazar Miljenovic: How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too. Unless you distro hasn't built GHC with dynamic library support. Debian (and in extension, Ubuntu) builds a ghc-dynamic package (http://packages.debian.org/sid/ghc-dynamic) on i386 and amd64, but does not build -dyn variants of the packaged libraries. So you base and everything that comes with ghc is covered, everything else (including stuff like mtl) is not. Greetings, Joachim -- Joachim nomeata Breitner m...@joachim-breitner.de | nome...@debian.org | GPG: 0x4743206C xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/ signature.asc Description: This is a digitally signed message part ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Really impossible to reinstall `base' using cabal?
On Wednesday 26 October 2011, 22:58:46, Joachim Breitner wrote: Hi, Am Mittwoch, den 26.10.2011, 13:10 +1100 schrieb Ivan Lazar Miljenovic: How did you get your ghc? If from your distro's package manager, you should be able to get the dyn- libs from that too. Unless you distro hasn't built GHC with dynamic library support. Debian (and in extension, Ubuntu) builds a ghc-dynamic package (http://packages.debian.org/sid/ghc-dynamic) on i386 and amd64, but does not build -dyn variants of the packaged libraries. So you base and everything that comes with ghc is covered, everything else (including stuff like mtl) is not. But everything that doesn't come with ghc *can* be reinstalled (though one has to be careful, and it may be inconvenient), so you provide a good starting point. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Is it possible to get the information of instances of a type?
No, this lists all the instances of a class. OP asked for the classes of which a given type is an instace. Presumably it is possible, since Haddock does it! In the documentation generated for a type it lists classes of which the type is an instance. So you might want to look at how Haddock does it. I suspect the only way is through the GHC API. ghci :info does it too. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Haskell Weekly News: Issue 205
Welcome to issue 205 of the HWN, a newsletter covering developments in the Haskell community. This release covers the week of October 16 to 22, 2011. You can find an HTML version of this issue at: http://contemplatecode.blogspot.com/2011/10/haskell-weekly-news-issue-205.html Announcements Ian Lynah sent out a call for nominations for the haskell.org committee. See the link for details on how to submit a nomination. Nominations close on October 29. [1] http://goo.gl/J9J6H New and Updated Projects * netwire (Ertugrul Soeylemez; 1.2.7) [2] http://goo.gl/ULujm Quotes of the Week * kmc: i just used Hayoo to see if anyone implemented this function and it came back with one of my own libraries * JoeyA: LLVM: The easy-to-use compiler infrastructure nobody knows how to use. * kmc: Haskell isn't really designed by mathematicians. it's designed by people who programmers would consider to be mathematicians and mathematicians would consider to be programmers * Cale: foldr is the real fold; foldl is an imposter * @remember hey daniel kmc wants his uploads featured on HWN [edit note: oops, I guess that was meant for me :) +1 for new and inventive ways to communicate!] Top Reddit Stories * Tech-talk about Haskell at Google: Haskell Amuse-Bouche Domain: youtu.be, Score: 86, Comments: 5 On Reddit: [3] http://goo.gl/Pf0NZ Original: [4] http://goo.gl/NPZ17 * Deprecate Prelude.head and partial functions Domain: chrisdone.com, Score: 58, Comments: 60 On Reddit: [5] http://goo.gl/Yat8J Original: [6] http://goo.gl/NyiRO * What does your company use Haskell for? I'll go first. Domain: self.haskell, Score: 51, Comments: 38 On Reddit: [7] http://goo.gl/VOfrO Original: [8] http://goo.gl/VOfrO * I am working on a functional web-programming language as a senior thesis. What do you think so far? Domain: elm-lang.org, Score: 40, Comments: 58 On Reddit: [9] http://goo.gl/6PrQM Original: [10] http://goo.gl/l3odM * Dear Redditor Emac-loving Haskeller(s): what cool emacs Haskell Mode (or custom) features do you use? Domain: self.haskell, Score: 40, Comments: 7 On Reddit: [11] http://goo.gl/LKW0A Original: [12] http://goo.gl/LKW0A * Macros in Haskell Domain: playingwithpointers.com, Score: 38, Comments: 0 On Reddit: [13] http://goo.gl/pwfjt Original: [14] http://goo.gl/bSYN8 * Type-safe event-based programming Domain: jaspervdj.be, Score: 35, Comments: 0 On Reddit: [15] http://goo.gl/gyj9J Original: [16] http://goo.gl/ZBC55 * Yesod excellent ideas Domain: yannesposito.com, Score: 34, Comments: 5 On Reddit: [17] http://goo.gl/ikFJV Original: [18] http://goo.gl/UgBaC * AI Challenge: Ants. Haskell support is only for GHC 6.12. Shall we lobby for 7.0? Domain: aichallenge.org, Score: 28, Comments: 24 On Reddit: [19] http://goo.gl/ShqaM Original: [20] http://goo.gl/O2YOp * Why not Haskell? Domain: neugierig.org, Score: 27, Comments: 26 On Reddit: [21] http://goo.gl/INmRp Original: [22] http://goo.gl/wK3U3 Top StackOverflow Questions * What are some compelling use cases for dependent method types? votes: 44, answers: 2 Read on SO: [23] http://goo.gl/2Xmgu * Why monads? How does it resolve side-effects? votes: 14, answers: 7 Read on SO: [24] http://goo.gl/UJimh * How does Haskell printf work? votes: 13, answers: 1 Read on SO: [25] http://goo.gl/351dE * Why is my genetic algorithm seemingly behaving randomly? votes: 10, answers: 1 Read on SO: [26] http://goo.gl/a5FtH * What are the benefits of applicative parsing over monadic parsing? votes: 10, answers: 4 Read on SO: [27] http://goo.gl/UEkpx * Fixity of backtick operators? votes: 9, answers: 1 Read on SO: [28] http://goo.gl/nwji2 * Bit Size of GHC's Int Type votes: 8, answers: 2 Read on SO: [29] http://goo.gl/DDtFZ * Simple word count in haskell votes: 8, answers: 4 Read on SO: [30] http://goo.gl/ZAYyT * existential search and query without the fuss votes: 8, answers: 2 Read on SO: [31] http://goo.gl/Fnes6 * How to selectively link certain system libraries statically into Haskell program binary? votes: 8, answers: 2 Read on SO: [32] http://goo.gl/HjPTc Until next time, Daniel Santa Cruz References 1. http://permalink.gmane.org/gmane.comp.lang.haskell.general/18983 2. http://permalink.gmane.org/gmane.comp.lang.haskell.cafe/93163 3. http://youtu.be/b9FagOVqxmI 4. http://www.reddit.com/r/haskell/comments/lkiiw/techtalk_about_haskell_at_google_haskell/ 5. http://chrisdone.com/posts/2011-10-17-boycott-head.html 6. http://www.reddit.com/r/haskell/comments/lf71l/deprecate_preludehead_and_partial_functions/ 7.
[arch-haskell] haskell/haskell-glade 0.12.1-1 related problems
arch: x86_64 haskell/haskell-glade 0.12.1-1 does not seem to be rebuilt against the latest community/haskell-gtk 0.12.1-1 There was some renamin probably so conflicts appear now. My guess would be that community packages got haskell prefix instead of gtk2hs? Not really sure. Anyway the renames lead to conflicts and mixing packages from [community] and [haskell]. You probably will not have any problems if you do not use haskell-glade. I solved it by just by putting [haskell] before [community] in pacman.conf. Which probably is a good thing in general. Peter. ___ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell