Re: [Haskell-cafe] Cabal bug? repeat "--reinstall"
Ahah on Github. Filed as https://github.com/haskell/cabal/issues/1175. On Fri 11 Jan 2013 01:21:11 CET, Niklas Hambüchen wrote: > Where do we report this? > > On 05/01/13 02:36, Albert Y. C. Lai wrote: >> On 13-01-04 04:36 PM, Niklas Hambüchen wrote: >>> I get the following: >>> >>> $ cabal install --only-dependencies --reinstall >>> >>> Resolving dependencies... >>> All the requested packages are already installed: >>> Use --reinstall if you want to reinstall anyway. >>> >>> >>> Can somebody confirm that they see the same? >> >> I confirm. >> >> >> ___ >> 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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Parallel cabal install ignores order
Done: https://github.com/haskell/cabal/issues/1174 On 11/01/13 01:50, Ivan Lazar Miljenovic wrote: > On 11 January 2013 10:27, Niklas Hambüchen wrote: >> I have "jobs: 4" enabled in my cabal config to get parallel installs >> with cabal-install >= 1.16. >> >> When I do cabal install --reinstall --force-reinstalls world to >> reinstall all packages (e.g. to enable profiling or shared), it fails >> after some point, complaining that the required dependency package is >> not compiled with the needed flag (for profiling / -dyn). >> >> It looks like for reinstalls, parallel cabal-install simply ignores the >> necessary order. >> >> Can somebody confirm this or tell me if this is known? >> If not, where should it be reported? > > As an off-the-cuff guess (not having had anything to do with > developing cabal-install, etc.), it probably _does_ take dependencies > into account... but it sees that the packages are all installed and > thus order isn't sufficient. What it seemingly isn't taking into > account is the new requirement to have profiling or dynamic builds of > existing packages. > >> >> Thanks >> Niklas >> >> ___ >> 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] Parallel cabal install ignores order
On 11 January 2013 10:27, Niklas Hambüchen wrote: > I have "jobs: 4" enabled in my cabal config to get parallel installs > with cabal-install >= 1.16. > > When I do cabal install --reinstall --force-reinstalls world to > reinstall all packages (e.g. to enable profiling or shared), it fails > after some point, complaining that the required dependency package is > not compiled with the needed flag (for profiling / -dyn). > > It looks like for reinstalls, parallel cabal-install simply ignores the > necessary order. > > Can somebody confirm this or tell me if this is known? > If not, where should it be reported? As an off-the-cuff guess (not having had anything to do with developing cabal-install, etc.), it probably _does_ take dependencies into account... but it sees that the packages are all installed and thus order isn't sufficient. What it seemingly isn't taking into account is the new requirement to have profiling or dynamic builds of existing packages. > > Thanks > Niklas > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com http://IvanMiljenovic.wordpress.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Parallel cabal install ignores order
I have "jobs: 4" enabled in my cabal config to get parallel installs with cabal-install >= 1.16. When I do cabal install --reinstall --force-reinstalls world to reinstall all packages (e.g. to enable profiling or shared), it fails after some point, complaining that the required dependency package is not compiled with the needed flag (for profiling / -dyn). It looks like for reinstalls, parallel cabal-install simply ignores the necessary order. Can somebody confirm this or tell me if this is known? If not, where should it be reported? Thanks Niklas ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Cabal bug? repeat "--reinstall"
Where do we report this? On 05/01/13 02:36, Albert Y. C. Lai wrote: > On 13-01-04 04:36 PM, Niklas Hambüchen wrote: >> I get the following: >> >> $ cabal install --only-dependencies --reinstall >> >> Resolving dependencies... >> All the requested packages are already installed: >> Use --reinstall if you want to reinstall anyway. >> >> >> Can somebody confirm that they see the same? > > I confirm. > > > ___ > 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] Haskell-Cafe Digest, Vol 113, Issue 11
OK. It tells me the same error message in popup, but all the projections are running after that. I'll make sure that it does not say any strange errors on empty DB in new version. Does it start projections for you as well (even if it says error)? On Tue, Jan 8, 2013 at 1:00 PM, wrote: > Send Haskell-Cafe mailing list submissions to > haskell-cafe@haskell.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.haskell.org/mailman/listinfo/haskell-cafe > or, via email, send a message with subject or body 'help' to > haskell-cafe-requ...@haskell.org > > You can reach the person managing the list at > haskell-cafe-ow...@haskell.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Haskell-Cafe digest..." > > Today's Topics: > >1. Example programs with ample use of deepseq? (Joachim Breitner) >2. Re: Example programs with ample use of deepseq? (Edward Z. Yang) >3. Re: Example programs with ample use of deepseq? (Joachim Breitner) >4. Re: Example programs with ample use of deepseq? (Johan Tibell) >5. Re: Announce: Leksah 0.13.1 (a bit experimental) (Peter Simons) >6. Re: Announce: Leksah 0.13.1 (a bit experimental) > (Hamish Mackenzie) > > > -- Forwarded message -- > From: Joachim Breitner > To: Haskell Cafe > Cc: > Date: Mon, 07 Jan 2013 13:06:35 +0100 > Subject: [Haskell-cafe] Example programs with ample use of deepseq? > Dear Haskellers, > > I’m wondering if the use of deepseq to avoid unwanted lazyness might be > a too large hammer in some use cases. Therefore, I’m looking for real > world programs with ample use of deepseq, and ideally easy ways to test > performance (so preferably no GUI applications). > > I’ll try to find out, by runtime observerations, which of the calls ot > deepseq could be replaced by id, seq, or „shallow seqs“ that, for > example, calls seq on the elements of a tuple. > > Thanks, > Joachim > > -- > Joachim "nomeata" Breitner > m...@joachim-breitner.de | nome...@debian.org | GPG: 0x4743206C > xmpp: nome...@joachim-breitner.de | http://www.joachim-breitner.de/ > > > > -- Forwarded message -- > From: "Edward Z. Yang" > To: Joachim Breitner > Cc: Haskell Cafe > Date: Mon, 07 Jan 2013 04:20:43 -0800 > Subject: Re: [Haskell-cafe] Example programs with ample use of deepseq? > There are two senses in which deepseq can be overkill: > > 1. The structure was already strict, and deepseq just forces another > no-op traversal of the entire structure. This hypothetically affects > seq too, although seq is quite cheap so it's not a problem. > > 2. deepseq evaluates too much, when it was actually sufficient only to > force parts of the structure, e.g. the spine of a list. This is less > common for the common use-cases of deepseq; e.g. if I want to force pending > exceptions I am usually interested in all exceptions in a (finite) data > structure; a space leak may be due to an errant closure---if I don't > know which it is, deepseq will force all of them, ditto with work in > parallel programs. Certainly there will be cases where you will want snip > evaluation at some point, but that is somewhat difficult to encode > as a typeclass, since the criterion varies from structure to structure. > (Though, perhaps, this structure would be useful: > > data Indirection a = Indirection a > class DeepSeq Indirection > rnf _ = () > ) > > Cheers, > Edward > > Excerpts from Joachim Breitner's message of Mon Jan 07 04:06:35 -0800 2013: > > Dear Haskellers, > > > > I’m wondering if the use of deepseq to avoid unwanted lazyness might be > > a too large hammer in some use cases. Therefore, I’m looking for real > > world programs with ample use of deepseq, and ideally easy ways to test > > performance (so preferably no GUI applications). > > > > I’ll try to find out, by runtime observerations, which of the calls ot > > deepseq could be replaced by id, seq, or „shallow seqs“ that, for > > example, calls seq on the elements of a tuple. > > > > Thanks, > > Joachim > > > > > > > -- Forwarded message -- > From: Joachim Breitner > To: haskell-cafe@haskell.org > Cc: > Date: Mon, 07 Jan 2013 16:59:45 +0100 > Subject: Re: [Haskell-cafe] Example programs with ample use of deepseq? > Hi, > Am Montag, den 07.01.2013, 13:06 +0100 schrieb Joachim Breitner: > > I’m wondering if the use of deepseq to avoid unwanted lazyness might be > > a too large hammer in some use cases. Therefore, I’m looking for real > > world programs with ample use of deepseq, and ideally easy ways to test > > performance (so preferably no GUI applications). > > surprisingly, deepseq is not used as much as I thought. > http://packdeps.haskellers.com/reverse/deepseq lists a lot of packages, > but (after grepping through some of the code) most just define NFData > instances and/or use it in tests, but rarely in the „real“ code. For > some reason I expected it to
Re: [Haskell-cafe] Lens, with ability to create a data-field when it's missing
Dear everyone, With help of many, I found ways to implement most of the features I have wanted, and I can release the new dynamic-object package. http://hackage.haskell.org/package/dynamic-object Thank you in advance for your supports, Takayuki 2013/1/3 Takayuki Muranushi : > Dear All, I really am enjoying the lens (it is tough to learn, though :) > > Recently, I've been trying to implement a dynamic object --- a > collection of methods that you can update at run-time --- using lens > [1][2][3]. After several attempts, I think I have located the center > of my problem: > > Lens with the ability "to create a data-field when it's missing." My > question: is it possible? > > There are many excellent examples of partial lenses in the lens > library, such as '_head' from Data.List.Lens 'dynamic' from > Data.Dynamic.Lens . To me, they seem to share the following set of > common behavior (allow me to use inaccurate terms...) > > - set l a s : if the field is present, insert 'a'; otherwise, do nothing. > - over l f s : if the field is present, map 'f' over it. otherwise, do > nothing. > - preview l s : if the field is present, return 'Just a'. otherwise, > return 'Nothing' . > > Instead, I want the following set of behaviors: > > - set l a s : if the field is present, insert 'a'; otherwise, *create > the field* and insert 'a'. > - over l f s : if the field is present, map 'f' over it. otherwise, do > nothing. > - preview l s : if the field is present, return 'Just a'. otherwise, > return 'Nothing' . > > For example, the current behavior of _head is > >>> [] & _head .~ 1 > [] > I want to implement a variant _head' , such that > >>> [] & _head' .~ 1 > [1] > > > Let us call this behavior 'Member' for the moment. > > I have a implementation of 'Member' [4][5] but they are > unsatisfactory. [4] involves runtime errors and breaking of lens laws. > [5] shows that we can "create a field" only if we treat Dynamic > explicitly out of lens context. > > I don't know how 'Member' will fit in the lens hierarchy > http://i.imgur.com/FgfVW.png or even if it fits at all. > Member is weaker than Getter and probably is a Fold since you have > only partial getting (^?) for Member. Member is weaker than Prism > since you cannot construct a whole Object from just one Member. On the > other hand, setter side of Member requires (s -> b -> t) interface of > a Lens, because the setter need to update the whole Object when the > field under concern is missing. > > That said, let me put this question in another way; > > " We can construct a (Simple Lens s a) from (getter :: s -> a) and > (setter :: s -> a -> s), and we can construct a (Getter s a) from > (getter :: s -> a). > Then why we cannot construct a (Simple Setter s a) from (setter :: s > -> a -> s) ? " > > Does Member deserve a new node in The Lens Hierarchy tree? Or can we > implement it by combinations of existing prisms, folds etc? Or does it > fall outside of the lens framework? > > I appreciate any comments. > Takayuki > > [1] https://github.com/nushio3/practice/tree/master/duck > [2] http://d.hatena.ne.jp/nushio/20121226#p2 (Japanese) > [3] > http://hackage.haskell.org/packages/archive/dynamic-object/0.1.0.1/doc/html/Data-Object-Dynamic-Types.html > [4] https://github.com/nushio3/practice/blob/master/lens/newfield.hs > [5] https://github.com/nushio3/practice/blob/master/lens/object-4.hs > > > -- > Takayuki MURANUSHI > The Hakubi Center for Advanced Research, Kyoto University > http://www.hakubi.kyoto-u.ac.jp/02_mem/h22/muranushi.html -- Takayuki MURANUSHI The Hakubi Center for Advanced Research, Kyoto University http://www.hakubi.kyoto-u.ac.jp/02_mem/h22/muranushi.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] First Los Angeles Haskell User Group Meetup
Hello Haskell Cafe, I'd like to announce that I've created a meetup group for any Haskell users in the LA area. The first meeting will be a meet-and-greet session, held next Tuesday, 15th January 2013, at Wurstkuche in the Downtown LA Arts District. After that, the goal is to organise presentations and discussions on Haskell-related topics roughly once a month. Interested parties can register for the group and RSVP here: http://www.meetup.com/Los-Angeles-Haskell-User-Group/ Thanks, Phil Freeman. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe