Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Problems with cabal install hakyll (Britt Anderson) 2. Re: Problems with cabal install hakyll (Daniel Trstenjak) 3. Re: Problems with cabal install hakyll (Britt Anderson) 4. Re: Problems with cabal install hakyll (Daniel Trstenjak) 5. Re: [solved] Problems with cabal install hakyll (Britt Anderson) 6. Re: Exercise of "Programming with Arrows" (Thiago Negri) 7. Re: [solved] Problems with cabal install hakyll (Martin Ruderer) ---------------------------------------------------------------------- Message: 1 Date: Wed, 16 Oct 2013 09:46:59 -0400 From: Britt Anderson <britt.ander...@uwaterloo.ca> To: "beginners@haskell.org" <beginners@haskell.org> Subject: [Haskell-beginners] Problems with cabal install hakyll Message-ID: <87zjq98h0s....@brittoffice.uwaterloo.ca> Content-Type: text/plain I have a fresh installation of ghc 7.6.3-1 and cabal 1.16. From this I was able to cabal update and then cabal install diagrams and pandoc, but when trying to install hakyll (either version 4 or 3) I get a lot of dependency conflicts. Can anyone give me some suggestions on how to proceed in this case? Thank you. Below follow the messages from cabal install --dry-run *** Trying version 4 *** cabal install --dry-run hakyll Resolving dependencies... cabal: Could not resolve dependencies: trying: hakyll-4.4.1.0 trying: hakyll-4.4.1.0:+checkexternal trying: http-conduit-1.9.5.1/installed-1fe... rejecting: tls-extra-0.6.6/installed-302... (conflict: tls-extra => cryptohash==0.11.1/installed-ae4..., hakyll => cryptohash>=0.7 && <0.11) rejecting: tls-extra-0.6.6, 0.6.5, 0.6.4, 0.6.3, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.7.1, 0.4.7, 0.4.6.1, 0.4.6, 0.4.5, 0.4.4, 0.4.3, 0.4.2.1, 0.4.2, 0.4.1, 0.4.0, 0.3.1, 0.3.0, 0.2.3, 0.2.2, 0.2.1, 0.2.0, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0 (conflict: http-conduit => tls-extra==0.6.6/installed-302...) ***Trying version 3 *** cabal install --dry-run hakyll-3.5.3.0 Resolving dependencies... In order, the following would be installed: HUnit-1.2.5.2 (new package) List-0.5.1 (new package) blaze-html-0.5.1.3 (new version) bytestring-mmap-0.2.2 (new package) entropy-0.2.2.4 (new package) crypto-api-0.12.2.2 (new package) cryptohash-0.8.4 (new version) enumerator-0.4.20 (new package) attoparsec-enumerator-0.3.1 (new package) blaze-builder-enumerator-0.2.0.5 (new package) hashable-1.1.2.5 (new version) case-insensitive-1.1 (reinstall) changes: hashable-1.2.1.0 -> 1.1.2.5 hexpat-0.20.3 (new package) highlighting-kate-0.5.5 (reinstall) changes: blaze-html-0.6.1.1 -> 0.5.1.3, filepath-1.3.0.1 added lrucache-1.1.1.3 (new package) regex-tdfa-1.1.8 (new package) syb-0.3.7 (new version) hs-bibutils-5.0 (new package) json-0.7 (new package) pandoc-types-1.9.1 (new version) citeproc-hs-0.3.9 (new package) system-filepath-0.4.8 (new package) system-fileio-0.3.11 (new package) shakespeare-1.2.0.1 (new package) hamlet-1.1.7.3 (new package) tagsoup-0.12.8 (new version) texmath-0.6.4 (reinstall) changes: pandoc-types-1.12.2.3 -> 1.9.1, syb-0.4.1 -> 0.3.7 pandoc-1.9.4.5 +blaze_html_0_5 (new version) unix-compat-0.4.1.1 (new package) unordered-containers-0.2.3.3 (reinstall) changes: hashable-1.2.1.0 -> 1.1.2.5 zlib-enum-0.2.3 (new package) snap-core-0.9.4.1 (new package) snap-server-0.9.3.4 (new package) hakyll-3.5.3.0 (new package) Warning: The following packages are likely to be broken by the reinstalls: http-types-0.8.1 pandoc-1.12.0.2 http-conduit-1.9.5.1 yaml-0.8.5.1 semigroups-0.11 void-0.6.1 zlib-conduit-1.0.0 lens-3.9.2 force-layout-0.2 diagrams-contrib-0.7 diagrams-0.7.1.1 conduit-1.0.8 blaze-builder-conduit-1.0.0 MemoTrie-0.6.1 vector-space-0.8.6 vector-space-points-0.1.2.1 diagrams-core-0.7.0.1 diagrams-svg-0.8.0.1 diagrams-lib-0.7.1.1 active-0.1.0.7 semigroupoids-3.1 semigroupoid-extras-3.0.1 profunctor-extras-3.3.3.1 monoid-extras-0.3.2.2 dual-tree-0.1.0.4 groupoids-3.0.1.1 comonad-transformers-3.1 comonads-fd-3.0.3 bifunctors-3.2.0.1 comonad-3.1 profunctors-3.3.0.1 aeson-0.6.2.1 pandoc-types-1.12.2.3 Use --force-reinstalls if you want to install anyway. ------------------------------ Message: 2 Date: Wed, 16 Oct 2013 16:04:18 +0200 From: Daniel Trstenjak <daniel.trsten...@gmail.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] Problems with cabal install hakyll Message-ID: <20131016140418.GA18241@machine> Content-Type: text/plain; charset=us-ascii Hi Britt, most likely the problem is solved by using a cabal sandbox (cabal >= 1.18). Update your cabal version: cabal install cabal-install Create a sandbox and build hakyll in it: cabal sandbox init cabal install -j hakyll (-j for building on multiple cores) The hakyll binary will then be located in './cabal-sandbox/bin/'. Greetings, Daniel ------------------------------ Message: 3 Date: Wed, 16 Oct 2013 14:06:20 +0000 From: Britt Anderson <britt.ander...@uwaterloo.ca> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Problems with cabal install hakyll Message-ID: <4B6B88CCBD52B845B95085968EEF0BF1724D46C9@connmbx> Content-Type: text/plain; charset="us-ascii" Thanks for the suggestion, but cabal 1.18 has conflicts with gtk2hs. In an earlier post to the beginners list, I was instructed to roll back to 1.16 to get around a conflict with gtk2hs. ________________________________________ From: Beginners [beginners-boun...@haskell.org] on behalf of Daniel Trstenjak [daniel.trsten...@gmail.com] Sent: Wednesday, October 16, 2013 10:04 AM To: beginners@haskell.org Subject: Re: [Haskell-beginners] Problems with cabal install hakyll Hi Britt, most likely the problem is solved by using a cabal sandbox (cabal >= 1.18). Update your cabal version: cabal install cabal-install Create a sandbox and build hakyll in it: cabal sandbox init cabal install -j hakyll (-j for building on multiple cores) The hakyll binary will then be located in './cabal-sandbox/bin/'. Greetings, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners ------------------------------ Message: 4 Date: Wed, 16 Oct 2013 16:18:53 +0200 From: Daniel Trstenjak <daniel.trsten...@gmail.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] Problems with cabal install hakyll Message-ID: <20131016141853.GB18241@machine> Content-Type: text/plain; charset=us-ascii On Wed, Oct 16, 2013 at 02:06:20PM +0000, Britt Anderson wrote: > Thanks for the suggestion, but cabal 1.18 has conflicts with gtk2hs. > In an earlier post to the beginners list, I was instructed to roll > back to 1.16 to get around a conflict with gtk2hs. Than perhaps installing diagrams, pandoc and hakyll at once might work, so that cabal might be able to select versions fitting all three: cabal install diagrams pandoc hakyll You might need to delete your '~/.cabal' and '~/.ghc' directories to get this working, or for testing, just rename them. Greetings, Daniel ------------------------------ Message: 5 Date: Wed, 16 Oct 2013 10:36:36 -0400 From: Britt Anderson <britt.ander...@uwaterloo.ca> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] [solved] Problems with cabal install hakyll Message-ID: <87y55t8eq3....@brittoffice.uwaterloo.ca> Content-Type: text/plain Thanks for the advice. I deleted my ~/.cabal and ~/.ghc and then installed hakyll first followed by diagrams and everything was fine. --Britt daniel.trsten...@gmail.com writes: > On Wed, Oct 16, 2013 at 02:06:20PM +0000, Britt Anderson wrote: >> Thanks for the suggestion, but cabal 1.18 has conflicts with gtk2hs. >> In an earlier post to the beginners list, I was instructed to roll >> back to 1.16 to get around a conflict with gtk2hs. > > Than perhaps installing diagrams, pandoc and hakyll at once might work, > so that cabal might be able to select versions fitting all three: > > cabal install diagrams pandoc hakyll > > > You might need to delete your '~/.cabal' and '~/.ghc' directories > to get this working, or for testing, just rename them. > > > Greetings, > Daniel > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners ------------------------------ Message: 6 Date: Wed, 16 Oct 2013 12:33:33 -0300 From: Thiago Negri <evoh...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Exercise of "Programming with Arrows" Message-ID: <CABLneZvGWg7ZuyjEjpzPHWj5YcJ-O8=ay6t9jn8s6c+0q5f...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Okay, I solved the exact test case the paper proposed. Now I've hit another problem: > -- -- -- stupid loop > -- `runSP loop_swap [1..10]` works > loop_swap :: SP a a > loop_swap = let swap (a, b) = (b, a) in loop (arr swap) > -- loop_bufid is just a "delayed id" > -- `runSP loop_bufid [1..10]` doesn't works :( > loop_bufid :: SP a a > loop_bufid = loop (Get (\a -> Get (\b -> Put a (Put b id)))) Updated gist: https://gist.github.com/thiago-negri/2e541a9f9762c727bdd4 At least I'm doing progress. :) 2013/10/14 Thiago Negri <evoh...@gmail.com> > Thanks for the new reply. > > I've fixed the "queue" not being a real queue (see the last gist I've sent > to the list [1]). > > The problem I was having in defining "first" was in my understanding of > the execution of the arrow. > I didn't realize that (>>>) is just the composition function from Category > class. > I tought that only the last output would be received by the second arrow > of (>>>), and it would continue the stream processing from there. > I was really lost. > Now I see that the correct thing to do is to fit a no-op on the second > stream because outputs will be delivered in pairs to the composed arrow. > Sort of a BalanceLine/Merge that I've learned in my COBOL years. > I will run your test cases as soon as I get home. > > By the way, I couldn't figure out a way to define an ArrowLoop instance > that "runSP (loop (arr swap))) [1..10]" doesn't evaluate to bottom (loops > forever). > I don't have much time to this, but I'm trying to solve it mentally when I > feel in the mood and typing some code on a 30-min/day basis. > The hackage package that defines a Stream Processor as explained by Hughes > uses a different definition for SP data type and has the same problem when > evaluating "swap" in a loop (it throws an error) [2]. > I guess this problem is harder than Hughes expected, as I find it more > difficult to solve than the tricky "first" definition. > Or, I may be missing something huge. > (I still want to solve it by myself, but tips are welcome.) > > Thanks, > Thiago. > > [1] https://gist.github.com/thiago-negri/2e541a9f9762c727bdd4 > [2] http://hackage.haskell.org/package/streamproc > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20131016/956ba6d0/attachment-0001.html> ------------------------------ Message: 7 Date: Wed, 16 Oct 2013 18:30:41 +0200 From: Martin Ruderer <martin.rude...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] [solved] Problems with cabal install hakyll Message-ID: <ca+t_wndc0xcv89mq5rxkts7r7jvkba5s2sb88drg3oyb2ha...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Another solution would have been to resort to pre-1.18 means by using hsenv, for example. On Wed, Oct 16, 2013 at 4:36 PM, Britt Anderson <britt.ander...@uwaterloo.ca > wrote: > Thanks for the advice. I deleted my ~/.cabal and ~/.ghc and then > installed hakyll first followed by diagrams and everything was fine. > > --Britt > > > daniel.trsten...@gmail.com writes: > > > On Wed, Oct 16, 2013 at 02:06:20PM +0000, Britt Anderson wrote: > >> Thanks for the suggestion, but cabal 1.18 has conflicts with gtk2hs. > >> In an earlier post to the beginners list, I was instructed to roll > >> back to 1.16 to get around a conflict with gtk2hs. > > > > Than perhaps installing diagrams, pandoc and hakyll at once might work, > > so that cabal might be able to select versions fitting all three: > > > > cabal install diagrams pandoc hakyll > > > > > > You might need to delete your '~/.cabal' and '~/.ghc' directories > > to get this working, or for testing, just rename them. > > > > > > Greetings, > > Daniel > > _______________________________________________ > > Beginners mailing list > > Beginners@haskell.org > > http://www.haskell.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20131016/2834279e/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 64, Issue 26 *****************************************