| 1 | 17:00 < JaffaCake> welcome all to the #ghc meeting... |
|---|
| 2 | 17:00 < dejones> JaffaCake: Good day. :) |
|---|
| 3 | 17:00 < nominolo> tjena |
|---|
| 4 | 17:01 < JaffaCake> waern: hi, good to see you |
|---|
| 5 | 17:01 < dejones> JaffaCake: Side note, I'm still working to integrate my code... I am having to do it manually. :( |
|---|
| 6 | 17:01 < dejones> Anyway, meeting... |
|---|
| 7 | 17:01 < JaffaCake> manually == without darcs? |
|---|
| 8 | 17:01 < dejones> Yes. |
|---|
| 9 | 17:01 < dejones> With diffs. |
|---|
| 10 | 17:01 * nominolo has to fix 100+ test suite failures first |
|---|
| 11 | 17:02 < JaffaCake> waern: how difficult is it to get Happy to propagate documentation across package boundaries? |
|---|
| 12 | 17:02 < T1> So far there is no final decision on if the new back-end will be used in 6.10, right? |
|---|
| 13 | 17:02 < JaffaCake> no new back end in 6.10, sorry |
|---|
| 14 | 17:02 -!- T1 is now known as TMD |
|---|
| 15 | 17:02 < JaffaCake> In fact, we're pushing qutie a few things back beyond 6.10 now, due to lack of time |
|---|
| 16 | 17:03 < Igloo> nominolo: Oh, if I put those credentials you sent in place etc then you wouldn't have to do it manually, right? |
|---|
| 17 | 17:03 < nominolo> Igloo: I guess so |
|---|
| 18 | 17:03 < JaffaCake> So the current plan is to leave the VCS switch until after 6.10 when we have more time to plan it properly |
|---|
| 19 | 17:03 < Igloo> OK, I'll make a note to do that then |
|---|
| 20 | 17:04 < BSP_> JaffaCake: isn't that going to make it hard to backport fixes? |
|---|
| 21 | 17:04 < ghcbot> Build x86 Windows head fast #2670 finished: Failure (failed stage2 boottestsuite runtestsuite) |
|---|
| 22 | 17:04 < ghcbot> Build details are at http://darcs.haskell.org/buildbot/all/builders/x86%20Windows%20head%20fast/builds/2670 |
|---|
| 23 | 17:04 < JaffaCake> BSP_: that's one downside, but if we do it in 3 months' time or so the rate of merges will have slowed |
|---|
| 24 | 17:04 < nominolo> JaffaCake: so what *will* go in then? |
|---|
| 25 | 17:05 < JaffaCake> http://hackage.haskell.org/trac/ghc/wiki/Status/Releases |
|---|
| 26 | 17:05 < lambdabot> Title: Status/Releases - GHC - Trac |
|---|
| 27 | 17:05 < JaffaCake> Haddock 2 is now in |
|---|
| 28 | 17:05 < waern> JaffaCake: hi |
|---|
| 29 | 17:05 < Igloo> "in 3 months time" probably means "just after 6.10.2" or something, but we can play it by ear depending on how many bugs are found etc |
|---|
| 30 | 17:05 < JaffaCake> I'm working on Unicode Handles, I hope that will go in (but I'm not sure at this stage) |
|---|
| 31 | 17:06 < JaffaCake> shared libraries will probably not be on by default in 6.10 |
|---|
| 32 | 17:06 < JaffaCake> there's a big update to type familiies still scheduled to go in |
|---|
| 33 | 17:07 < JaffaCake> nominolo: will your patch be ready, do you think? |
|---|
| 34 | 17:07 < waern> JaffaCake: hmm, you mean to solve the problem with docs from ghc-prim that should show up in the Prelude? |
|---|
| 35 | 17:07 < Igloo> backend-revamp is now post-6.10, right? |
|---|
| 36 | 17:07 < JaffaCake> waern: yes, also the array package, and some others |
|---|
| 37 | 17:07 < nominolo> JaffaCake: i hope so |
|---|
| 38 | 17:08 < waern> JaffaCake: currently we don't store documentation in the .haddock files, but we could, and that would solve the problem quite easily I think |
|---|
| 39 | 17:08 < nominolo> JaffaCake: chances are > 50% |
|---|
| 40 | 17:08 < BSP_> might it be an idea to push back the release? |
|---|
| 41 | 17:08 < BSP_> since there seem to be lots of features we would like to have not quite baked yet |
|---|
| 42 | 17:08 < JaffaCake> waern: yes, that's what I thought - any chance of it happening before 6.10? :) |
|---|
| 43 | 17:08 < Igloo> BSP_: You can push releases back forever, one week at a time, though |
|---|
| 44 | 17:09 < waern> JaffaCake: we could let the rule be to always show the documentation in the package that "inherits" it, even though the module it comes from might not be hidden in the original package |
|---|
| 45 | 17:09 < Igloo> Also, ICFP is a nice time for people to try out RCs and report problems |
|---|
| 46 | 17:09 < thoughtpolice> JaffaCake: so type families are still scheduled to be totally working for 6.10? what about the NDP work that will go in? |
|---|
| 47 | 17:09 < JaffaCake> yes, I'm with Igloo here |
|---|
| 48 | 17:09 < waern> JaffaCake: hmm, well, there are other things I've been meaning to fix before 6.10 as well |
|---|
| 49 | 17:10 < JaffaCake> I'm not sure about NDP |
|---|
| 50 | 17:10 < JaffaCake> but TF, yes |
|---|
| 51 | 17:10 < JaffaCake> waern: ok, what else is high up the list? |
|---|
| 52 | 17:11 < JaffaCake> waern: yes, I think the behaviour should be the same regardless of whether you're re-exporting from a module in the same package or in a different package |
|---|
| 53 | 17:12 < thoughtpolice> JaffaCake: the status page needs to be updated with some of this new info then, it seems |
|---|
| 54 | 17:12 < waern> JaffaCake: but that's not what my rule says :) |
|---|
| 55 | 17:12 < thoughtpolice> i.e. extensible exceptions are done now too, aren't they? |
|---|
| 56 | 17:12 < Igloo> I've just moved them |
|---|
| 57 | 17:12 < quicksilver> quasiquoting? |
|---|
| 58 | 17:12 < BSP_> quicksilver: thats marked as done |
|---|
| 59 | 17:12 < JaffaCake> waern: ok, I misunderstood then - what's the difference? |
|---|
| 60 | 17:13 < JaffaCake> quicksilver: QQ is in, yes |
|---|
| 61 | 17:13 < waern> JaffaCake: oh, hmm, well now that I think about it the only difference is for "module" export items (IIRC) |
|---|
| 62 | 17:13 < JaffaCake> right |
|---|
| 63 | 17:13 < quicksilver> \o/ I look forward to playing with that. |
|---|
| 64 | 17:14 < waern> JaffaCake: anyway, those details can be worked out, and it doesn't matter that much |
|---|
| 65 | 17:14 < waern> JaffaCake: as for the priorities, I've been meaning to send some patches to GHC before 6.10 comes out that fixes a few problems |
|---|
| 66 | 17:15 < JaffaCake> ok, great |
|---|
| 67 | 17:15 < waern> JaffaCake: for example the lack of docs on type synonym definitions |
|---|
| 68 | 17:15 < malcolmw> there was a message recently about undoing or reverting the package split of base/getopt/concurrent/timeout/unique - is that settled? |
|---|
| 69 | 17:16 < JaffaCake> oh, I didn't realise we had a bug there |
|---|
| 70 | 17:16 < Igloo> malcolmw: It's decided, but I haven't atually done it yet |
|---|
| 71 | 17:16 -!- judahj [n=judah@cpe-76-170-234-70.socal.res.rr.com] has joined #ghc |
|---|
| 72 | 17:16 < waern> JaffaCake: it's making some packages on hackage fail, due to parse errors |
|---|
| 73 | 17:16 < thoughtpolice> quicksilver: it's really cool, mmorrow has been doing a bunch of stuff with it and got a quoter built on Language.C working the other day |
|---|
| 74 | 17:16 < waern> JaffaCake: fail when making the docs, that is |
|---|
| 75 | 17:17 < thoughtpolice> i'll have to learn some TH and play with it a bunch :] |
|---|
| 76 | 17:17 < quicksilver> thoughtpolice: really nice. |
|---|
| 77 | 17:17 < JaffaCake> I have some improvements to parallel performance that might make it into 6.10 too |
|---|
| 78 | 17:18 < waern> JaffaCake: but other than that, I can prioritize the inter-package documentation stuff higher than the rest of the Haddock bugs. So perhaps we'll get it in |
|---|
| 79 | 17:18 < JaffaCake> Jost Berthold has implemented work stealing for par/seq |
|---|
| 80 | 17:18 < dejones> :) |
|---|
| 81 | 17:18 < JaffaCake> waern: sounds like the type synonym issue is higher priority, if it's causing outright failures |
|---|
| 82 | 17:19 < waern> JaffaCake: yep |
|---|
| 83 | 17:19 < thoughtpolice> quicksilver: it's really great because you basically just need a parser and an instance for TH's Lift (which can be automatically done) and you're basically 95% of the way there. it's a simple process; I speculate almost all of the parsers for various things on hackage could be fitted to use QQ |
|---|
| 84 | 17:20 < thoughtpolice> with minimal effort, to boot. |
|---|
| 85 | 17:20 < nominolo> QQ is a really evil feature for HaRe |
|---|
| 86 | 17:20 < quicksilver> thoughtpolice: the syntax is still slightly gnarly though. |
|---|
| 87 | 17:20 < quicksilver> thoughtpolice: ascii is so limiting sometimes. |
|---|
| 88 | 17:23 < dcoutts_> so, what's next on the agenda ? |
|---|
| 89 | 17:23 < JaffaCake> should we ship extralibs with GHC 6.10? |
|---|
| 90 | 17:23 < dcoutts_> ah, ok, good one :-) |
|---|
| 91 | 17:23 < Igloo> No. Next? :-) |
|---|
| 92 | 17:24 < JaffaCake> heh :) |
|---|
| 93 | 17:24 < dcoutts_> JaffaCake: so, we've got a haskell-platform package that depends on the others |
|---|
| 94 | 17:24 < dcoutts_> so we've got something to start testing the build infrastructure |
|---|
| 95 | 17:24 < nominolo> which others? |
|---|
| 96 | 17:24 < dcoutts_> nominolo: mostly just extra libs + cabal-install |
|---|
| 97 | 17:24 < dcoutts_> for the first release |
|---|
| 98 | 17:24 < Igloo> dcoutts_: Does that mean the build infrastructure exists? What does it do, if so? |
|---|
| 99 | 17:25 < nominolo> but that doesn't require ghc shipping with them, does it? |
|---|
| 100 | 17:25 < JaffaCake> ok, so someone will be able to get an HP by: 1. get cabal-install, 2. cabal-install hp |
|---|
| 101 | 17:25 < dcoutts_> JaffaCake: yes, or possibly just get the HP and make install |
|---|
| 102 | 17:25 < Igloo> JaffaCake: 0. get tar, zlib, http, etc |
|---|
| 103 | 17:25 * malcolmw notes that extra-libs no longer includes essential libraries like HOpenGL |
|---|
| 104 | 17:25 < dcoutts_> malcolmw: haskell-platform currently does depend on those |
|---|
| 105 | 17:25 < malcolmw> dcoutts_: oh cool |
|---|
| 106 | 17:26 < JaffaCake> right, so we talked about having a tarball of the HP that will bootstrap itself |
|---|
| 107 | 17:26 < dcoutts_> malcolmw: if we find they cannot be built on all platforms in time for a release then we could consider dropping some |
|---|
| 108 | 17:26 < dcoutts_> JaffaCake: right |
|---|
| 109 | 17:26 < dcoutts_> and I'm going to try and get an instance of the new hackage-server running on a public host asap |
|---|
| 110 | 17:27 < dcoutts_> so people can use cabal-install to provide build reports + logs |
|---|
| 111 | 17:27 < JaffaCake> so we should drop extralibs then? |
|---|
| 112 | 17:27 < dcoutts_> well, maybe, if we're sufficiently confident :-) |
|---|
| 113 | 17:28 < JaffaCake> it would force the issue :) |
|---|
| 114 | 17:28 < dcoutts_> true true |
|---|
| 115 | 17:28 -!- Jedai [n=jedai@dhcp2978.kent.ac.uk] has joined #ghc |
|---|
| 116 | 17:28 < dcoutts_> JaffaCake: we'd need help with osx and windows installers |
|---|
| 117 | 17:29 < claus> ghc builds extralibs in a cygwin/mingw environment (with configure&co); cabal-install tries to build packages in plain windows;is HP really ready to take over without stumbling? |
|---|
| 118 | 17:29 * dcoutts_ knows nothing about osx installers |
|---|
| 119 | 17:29 * JaffaCake either |
|---|
| 120 | 17:29 < dcoutts_> claus: if you use cabal-install with sh on your path then I believe it works with configure |
|---|
| 121 | 17:29 < JaffaCake> we're going to ship a Windows installer of the HP though |
|---|
| 122 | 17:30 < dcoutts_> right, so it's only builders that need mingw for opengl etc |
|---|
| 123 | 17:30 < judahj> dcoutts_: I think it's OK for an initial release of HP to use unix-y installation on OS X |
|---|
| 124 | 17:30 < claus> dcoutts: that would have to be a mingw sh; and then there's the issue of ghc's mingw vs any other mingw installs, right? |
|---|
| 125 | 17:30 < dcoutts_> JaffaCake: but no unix bindist of the HP I think, at least not initially |
|---|
| 126 | 17:31 < dcoutts_> judahj: you mean a tarball + building from source ? |
|---|
| 127 | 17:31 < JaffaCake> right |
|---|
| 128 | 17:31 < judahj> dcoutts_: right |
|---|
| 129 | 17:31 < dcoutts_> claus: yes, a mingw sh |
|---|
| 130 | 17:31 < JaffaCake> dcoutts_: if you want a home-dir install of the HP, you install the GHC bindist, then use the HP tarball |
|---|
| 131 | 17:31 < dcoutts_> claus: afaik, ghc's subset of mingw does not come with sh |
|---|
| 132 | 17:31 < dcoutts_> just gcc and the bits needed for gcc |
|---|
| 133 | 17:32 < dcoutts_> JaffaCake: right |
|---|
| 134 | 17:32 -!- conal [n=user@d5153048F.access.telenet.be] has quit [Connection timed out] |
|---|
| 135 | 17:33 < dcoutts_> JaffaCake: how does the windows installer for ghc + extralibs work atm? |
|---|
| 136 | 17:33 < dcoutts_> for registering packages |
|---|
| 137 | 17:33 < dcoutts_> I guess it installs them all together in one tree, so does not have any problem with registering |
|---|
| 138 | 17:33 < Igloo> It does make install, then tars up the installed directory |
|---|
| 139 | 17:33 < JaffaCake> dcoutts_: it comes pre-registered |
|---|
| 140 | 17:33 < Igloo> Where the path used to register starts with $topdir |
|---|
| 141 | 17:33 < dcoutts_> indeed never registers on the target machine |
|---|
| 142 | 17:33 < dcoutts_> right |
|---|
| 143 | 17:33 < claus> dcoutts: right, which would mean that HP users would need to install a full mingw, and then ghc would still not use that; so people have to copy things from the full mingw to ghc's mingw for ghc to find them (ffi,includes,) |
|---|
| 144 | 17:33 < dcoutts_> so gtk2hs has to do relocatable installs and call ghc-pk |
|---|
| 145 | 17:34 < JaffaCake> claus: no, not at all |
|---|
| 146 | 17:34 < Igloo> claus: What do you mean by "HP users"? |
|---|
| 147 | 17:34 < dcoutts_> claus: if they wanted to build from source, yes they'd need full mingw. But no copying things about would be necessary I think. |
|---|
| 148 | 17:35 < JaffaCake> not just mingw; you'd need Cygwin or MSYS |
|---|
| 149 | 17:35 < dcoutts_> right, msys |
|---|
| 150 | 17:35 < JaffaCake> but we don't expect Windows users to build from source |
|---|
| 151 | 17:36 * dcoutts_ fires up MSYS and runs cabal update && cabal install cabal-install && cabal install --reinstall opengl |
|---|
| 152 | 17:37 < Igloo> I guess the pre-registered libs means that it makes more sense to make one large installer than to bundle the GHC installer in the HP installer |
|---|
| 153 | 17:37 < Igloo> i.e. the HP bindist would start from the Windows tarball |
|---|
| 154 | 17:37 < JaffaCake> currently cabal-install will register with absolute pathnames on Windows, won't it? |
|---|
| 155 | 17:38 < dcoutts_> JaffaCake: yes, but it's possible to make relocatable ones I think |
|---|
| 156 | 17:38 < JaffaCake> so we'd have to do something special when building the HP on Windows for the installer |
|---|
| 157 | 17:38 < dcoutts_> if doing copy --destdir |
|---|
| 158 | 17:39 < dcoutts_> JaffaCake: there's definately some support for relocatable things, with some restrictions |
|---|
| 159 | 17:39 < dcoutts_> JaffaCake: but not for docs |
|---|
| 160 | 17:40 < Igloo> We just need to use GHC's installPackage to do the install step, I think |
|---|
| 161 | 17:40 < JaffaCake> isn't that just for binaries? |
|---|
| 162 | 17:40 < claus> JaffaCake: not-from source is good to hear; I've been trying to find the ticket I think part of it is http://hackage.haskell.org/trac/ghc/ticket/1502 ; |
|---|
| 163 | 17:40 < lambdabot> Title: #1502 (GHC should integrate better with mingw) - GHC - Trac |
|---|
| 164 | 17:40 < JaffaCake> Igloo: ah, good point |
|---|
| 165 | 17:40 < JaffaCake> that ticket has a suitable vague title |
|---|
| 166 | 17:41 < claus> JaffaCake: on the other hand, the build darcs on windows instructions looked a lot more frightening a few weeks ago, perhaps that copying is no longer needed, just point to the installation dir of the libs? |
|---|
| 167 | 17:41 < JaffaCake> I never copy anything to my GHC install on Windows |
|---|
| 168 | 17:42 < JaffaCake> but I do jump through some hoops to get darcs built (see my post on darcs-users) |
|---|
| 169 | 17:42 < dcoutts_> claus: I just tested cabal install opengl on windows using msys. Works fine. |
|---|
| 170 | 17:42 < JaffaCake> I don't think I understand why it is necessary to copy things to the GHC directory |
|---|
| 171 | 17:43 < claus> jaffacake: I probably just read too many adhoc build instructions |
|---|
| 172 | 17:43 < JaffaCake> regarding that ticket - if we had GHC bundle the mingw installer, we want to be sure that multiple GHC installs don't overwrite each other's mingw installs |
|---|
| 173 | 17:45 < JaffaCake> dcoutts_: yay |
|---|
| 174 | 17:45 < dcoutts_> JaffaCake: huh? ghc already bundles bits of mingw. What else do people need? |
|---|
| 175 | 17:45 < JaffaCake> some of the binutils, apparently |
|---|
| 176 | 17:45 < dcoutts_> oh, like strip? |
|---|
| 177 | 17:45 < claus> dcoutts: great! (assuming it works?-) perhaps for confused people like me, there should be some docs saying how easy it is to cabal install even complex packages like opengl with ffi and configure on windows these days, and ask people to revise/simplify their package build instructions |
|---|
| 178 | 17:46 < JaffaCake> (from the ticket) strip, nm, reimp, dlltool, pexport, windres |
|---|
| 179 | 17:46 < dcoutts_> JaffaCake: fair enough. I don't think that should cause any trouble. You already have gcc, ld, etc |
|---|
| 180 | 17:46 -!- bringert [n=bringert@dhcp-250-26.nomad.chalmers.se] has quit [Read error: 104 (Connection reset by peer)] |
|---|
| 181 | 17:46 < dcoutts_> of course they're not on the normal path, which is why it works |
|---|
| 182 | 17:47 < dcoutts_> but cabal looks for gcc in ghc's gcc-lib |
|---|
| 183 | 17:47 < dcoutts_> and ld |
|---|
| 184 | 17:47 < JaffaCake> yeah, I consider it to be part of GHC's back end, not something we expose to users |
|---|
| 185 | 17:47 < dcoutts_> right |
|---|
| 186 | 17:47 < JaffaCake> cabal is naughty :) |
|---|
| 187 | 17:47 < dcoutts_> JaffaCake: it has to, otherwise we cannot build .c code reliably |
|---|
| 188 | 17:47 < dcoutts_> or we might get incompatible results |
|---|
| 189 | 17:48 < JaffaCake> can't you build it with ghc? |
|---|
| 190 | 17:48 < dcoutts_> JaffaCake: at the moment we do use ghc to build .c code actually |
|---|
| 191 | 17:48 < dcoutts_> but we have to call ld directly |
|---|
| 192 | 17:48 < dcoutts_> and we find gcc to pass to hsc2hs |
|---|
| 193 | 17:48 < JaffaCake> yes, I remember that |
|---|
| 194 | 17:48 < JaffaCake> it's a bit unsatisfactory |
|---|
| 195 | 17:49 < dcoutts_> if ghc wants to ship without gcc then that's fine, we'll just look on the path for gcc etc |
|---|
| 196 | 17:49 < JaffaCake> perhaps we should supply ld/gcc that you can just invoke without the -B stuff |
|---|
| 197 | 17:49 < dcoutts_> it's not that tricky |
|---|
| 198 | 17:49 < JaffaCake> no, but we might want to change it in the future |
|---|
| 199 | 17:50 < dcoutts_> sure |
|---|
| 200 | 17:50 < JaffaCake> it's better not to have this dependency |
|---|
| 201 | 17:50 < dcoutts_> which dependency exactly? |
|---|
| 202 | 17:50 < JaffaCake> the dependency from Cabal on how to find & invoke gcc in a GHC installation |
|---|
| 203 | 17:51 < dcoutts_> JaffaCake: mm, well it's that or we have to find it in the path |
|---|
| 204 | 17:51 < dcoutts_> and that either means ghc has to install it to the path |
|---|
| 205 | 17:51 < dcoutts_> or the user needs to install mingw |
|---|
| 206 | 17:51 < JaffaCake> I mean if we commit to putting gcc & ld in the same place as GHC, that would be easier |
|---|
| 207 | 17:51 < dcoutts_> people like to be able to install ghc without changing the path apparently |
|---|
| 208 | 17:51 < dcoutts_> don't ask me why |
|---|
| 209 | 17:52 < JaffaCake> although maybe that would cause more problems |
|---|
| 210 | 17:52 < dcoutts_> JaffaCake: that's not much different, we still need to go look in a special place |
|---|
| 211 | 17:52 < Igloo> Or "ghc --where-is gcc" etc |
|---|
| 212 | 17:52 < dcoutts_> JaffaCake: it's just $ghcdir/gcc rather than $ghcdir/gcc-lib/gcc |
|---|
| 213 | 17:52 < JaffaCake> dcoutts_: it's the magic -B stuff that I'm more worried about |
|---|
| 214 | 17:53 < dcoutts_> JaffaCake: oh that, it's not a problem from cabal's pov, it'd save us ~3 lines of code |
|---|
| 215 | 17:53 < dcoutts_> since we need to set up gcc specially anyway |
|---|
| 216 | 17:53 < Igloo> We may as well make gcc not need it if we can, though |
|---|
| 217 | 17:53 < dcoutts_> sure, if it's easy to do |
|---|
| 218 | 17:55 < claus> what about compatibility of mingw versions? is that no longer an issue? |
|---|
| 219 | 17:55 < dcoutts_> so, for the HP tarball, I think all it'd need is a suitably crafted tarball content and a portable sh script. |
|---|
| 220 | 17:55 < dcoutts_> we'd have it compile cabal-install, and then invoke cabal-install with a local repo to install the platform |
|---|
| 221 | 17:55 < dcoutts_> the local repo being in the tarball of course |
|---|
| 222 | 17:56 < JaffaCake> right |
|---|
| 223 | 17:56 < JaffaCake> sounds good |
|---|
| 224 | 17:56 -!- clanehin_ [n=lane@cpe-069-134-113-217.nc.res.rr.com] has quit [Remote closed the connection] |
|---|
| 225 | 17:56 < Igloo> dcoutts_: Why cabal-install rather than something like GHC's cabal-bin? |
|---|
| 226 | 17:56 < Igloo> If you build cabal-install then you need to build http etc |
|---|
| 227 | 17:56 -!- clanehin_ [n=lane@cpe-069-134-113-217.nc.res.rr.com] has joined #ghc |
|---|
| 228 | 17:57 < dcoutts_> Igloo: because we're installing those anyway, and it means it'll do the whole lot in one go in the right order without a makefile |
|---|
| 229 | 17:57 < dcoutts_> cabal --local-repo=blah install haskell-platform |
|---|
| 230 | 17:58 < JaffaCake> I think the point is that we need to build & install cabal-install's deps before we can build cabal-install |
|---|
| 231 | 17:58 < JaffaCake> using plain Cabal, presumably |
|---|
| 232 | 17:59 < JaffaCake> I better go... bye folks! |
|---|
| 233 | 17:59 < Igloo> See ya |
|---|
| 234 | 17:59 < dcoutts_> JaffaCake: no, it's easy |
|---|
| 235 | 18:00 < dcoutts_> ghc --make cabal-install/Main.hs -o cabal -iCabal:zlib:HTTP |
|---|
| 236 | 18:00 < JaffaCake> oh, that's cheating |
|---|
| 237 | 18:00 < dcoutts_> heh |
|---|
| 238 | 18:00 < dcoutts_> we'd end up building them again |
|---|
| 239 | 18:00 < Igloo> You'll still build them twice |
|---|
| 240 | 18:00 < dcoutts_> for the proper install |
|---|
| 241 | 18:00 < dcoutts_> Igloo: feh |
|---|
| 242 | 18:01 < Igloo> It's a bit bikesheddy, but I'd use cabal-bin to build up to cabal-install, and then cabal-install (for topological sort) to do the rest |
|---|
| 243 | 18:02 < dcoutts_> why? what does it save? |
|---|
| 244 | 18:02 < dcoutts_> Igloo: if one's clever one could arrange to make the first build get re-used for the Cabal bootstrap |
|---|
| 245 | 18:02 < dcoutts_> since Cabal builds itself twice too |
|---|
| 246 | 18:02 < dcoutts_> once to make setup then setup build the real thing |
|---|
| 247 | 18:03 < dcoutts_> so one could pre-populate the .hi and .o files needed for that while building cabal-install |
|---|
| 248 | 18:03 < dcoutts_> so it'd only be http and zlib that'd get built twice |
|---|
| 249 | 18:03 < dcoutts_> and they're relatively small |
|---|
| 250 | 18:03 < dcoutts_> and we'd not be building with -O the first time |
|---|
| 251 | 18:03 < Igloo> You don't need to build Cabal |
|---|
| 252 | 18:03 < dcoutts_> oh, good point |
|---|
| 253 | 18:04 < dcoutts_> so even less need to worry |
|---|
| 254 | 18:04 < dcoutts_> building the others twice is no big deal |
|---|
| 255 | 18:05 < Igloo> It means that any cpp flags etc that are set in the Cabal files are used. Like I said, it's bikesheddy, so I'm not going to spend much time arguing about it :-) |
|---|
| 256 | 18:05 -!- tibbe [n=tibbe@72.14.229.17] has joined #ghc |
|---|
| 257 | 18:05 < dcoutts_> hmm, that could be important for zlib on windows actually |
|---|
| 258 | 18:11 -!- TMD [n=tmdubui@144.51.26.41] has left #ghc [] |
|---|
| 259 | 18:12 -!- tengvall [i=53915df2@gateway/web/ajax/mibbit.com/x-b228be07131bdf23] has quit ["http://www.mibbit.com ajax IRC Client"] |
|---|