<div dir="ltr">Hello,<div><br></div><div>I think that the simple type nats solver (branch type-nats-simple) is pretty much ready for merging with HEAD.  Should I go ahead and merge it in?</div><div><br></div><div>-Iavor</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 1:18 PM, Austin Seipp <span dir="ltr">&lt;<a href="mailto:austin@well-typed.com" target="_blank">austin@well-typed.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think this can definitely be clarified. I&#39;ll update the docs a<br>
little later today when I get a chance.<br>
<div><div class="h5"><br>
On Thu, Sep 12, 2013 at 1:35 PM, Simon Peyton-Jones<br>
&lt;<a href="mailto:simonpj@microsoft.com">simonpj@microsoft.com</a>&gt; wrote:<br>
&gt; Is this something that could be clarified in GHC&#39;s documentation?  Patch?<br>
&gt;<br>
&gt; Simon<br>
&gt;<br>
&gt; |  -----Original Message-----<br>
&gt; |  From: ghc-devs [mailto:<a href="mailto:ghc-devs-bounces@haskell.org">ghc-devs-bounces@haskell.org</a>] On Behalf Of Kazu<br>
&gt; |  Yamamoto<br>
&gt; |  Sent: 12 September 2013 04:43<br>
&gt; |  To: <a href="mailto:glasgow-haskell-users@haskell.org">glasgow-haskell-users@haskell.org</a>; <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
&gt; |  Subject: Re: 7.8 Release Update<br>
&gt; |<br>
&gt; |  Hi,<br>
&gt; |<br>
&gt; |  Now I understand what is right and why I misunderstood.<br>
&gt; |<br>
&gt; |  - GHC 7.8 provides three kinds of libraries:<br>
&gt; |       - static libraries<br>
&gt; |       - dynamic libraries<br>
&gt; |       - static libraries for profiling<br>
&gt; |  - GHCi uses dynamic libraries.<br>
&gt; |  - Programs complied with GHC 7.8 use static libraries.<br>
&gt; |  - When a library package is complied, both static one and dynamic<br>
&gt; |    one are created.<br>
&gt; |  - When &quot;-p&quot; or &quot;--enabling-executable-profiling&quot; are specified to<br>
&gt; |    cabal, static libraries for profiling are also created and used.<br>
&gt; |<br>
&gt; |  So, we don&#39;t have to specify &quot;--enable-shared&quot;/&quot;--disable-shared&quot; to<br>
&gt; |  cabal in normal situation.<br>
&gt; |<br>
&gt; |  There is no bug. Just I misunderstood.<br>
&gt; |<br>
&gt; |  * Why did I misunderstand that programs are linked dynamically?<br>
&gt; |<br>
&gt; |  I tried to support GHC 7.8 for doctest. Doctest uses GHCi internally.<br>
&gt; |  At the beginning, doctest cannot pass many tests if &quot;--enable-shared&quot;<br>
&gt; |  is not specified. This was fixed:<br>
&gt; |<br>
&gt; |       <a href="https://github.com/sol/doctest-haskell/issues/58" target="_blank">https://github.com/sol/doctest-haskell/issues/58</a><br>
&gt; |<br>
&gt; |  Now, &quot;--enable-shared&quot; is not necessary even for doctest.<br>
&gt; |<br>
&gt; |  * Why did I misunderstand that compiling programs for profiling fails?<br>
&gt; |<br>
&gt; |  I specified --ghc-options=&quot;-prof -fprof-auto&quot;. &quot;-prof&quot; lets GHC 7.8<br>
&gt; |  to produce both static and dynamic libraries for profiling. This<br>
&gt; |  resulted in build failure.<br>
&gt; |<br>
&gt; |  Right procedure for profiling are:<br>
&gt; |<br>
&gt; |  % cabal install -p --enable-executable-profiling --ghc-options=&quot;-fprof-auto&quot; -j3<br>
&gt; |<br>
&gt; |  or<br>
&gt; |<br>
&gt; |  % cabal install -p --ghc-options=&quot;-fprof-auto&quot; --only-dependencies -j3<br>
&gt; |  % cabal configure --enable-executable-profiling<br>
&gt; |  % cabal build<br>
&gt; |<br>
&gt; |  --Kazu<br>
&gt; |<br>
&gt; |  &gt; On 09/09/13 08:14, Edward Z. Yang wrote:<br>
&gt; |  &gt;&gt; Excerpts from Kazu Yamamoto (山本和彦)&#39;s message of Sun Sep 08<br>
&gt; |  &gt;&gt; 19:36:19 -0700 2013:<br>
&gt; |  &gt;&gt;&gt; ----<br>
&gt; |  &gt;&gt;&gt; % make show VALUE=GhcLibWays<br>
&gt; |  &gt;&gt;&gt; make -r --no-print-directory -f <a href="http://ghc.mk" target="_blank">ghc.mk</a> show<br>
&gt; |  &gt;&gt;&gt; GhcLibWays=&quot;v p dyn&quot;<br>
&gt; |  &gt;&gt;&gt; ----<br>
&gt; |  &gt;&gt;<br>
&gt; |  &gt;&gt; Yes, it looks like you are missing p_dyn from this list. I think<br>
&gt; |  &gt;&gt; this is a bug in the build system.  When I look at <a href="http://ghc.mk" target="_blank">ghc.mk</a><br>
&gt; |  &gt;&gt; it only verifies that the p way is present, not p_dyn; and I don&#39;t<br>
&gt; |  &gt;&gt; see any knobs which turn on p_dyn.<br>
&gt; |  &gt;&gt;<br>
&gt; |  &gt;&gt; However, I must admit to being a little confused; didn&#39;t we abandon<br>
&gt; |  &gt;&gt; dynamic by default and switch to only using dynamic for GHCi (in which<br>
&gt; |  &gt;&gt; case the profiling libraries ought not to matter)?<br>
&gt; |  &gt;<br>
&gt; |  &gt; I think Kazu is saying that when he builds something with profiling<br>
&gt; |  &gt; using cabal-install, it fails because cabal-install tries to build a<br>
&gt; |  &gt; dynamic version too.  We don&#39;t want dyanmic/profiled libraries<br>
&gt; |  &gt; (there&#39;s no point, you can&#39;t load them into GHCi).  Perhaps this is<br>
&gt; |  &gt; something that needs fixing in cabal-install?<br>
&gt; |  &gt;<br>
&gt; |  &gt; Cheers,<br>
&gt; |  &gt;    Simon<br>
&gt; |  &gt;<br>
&gt; |  _______________________________________________<br>
&gt; |  ghc-devs mailing list<br>
&gt; |  <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
&gt; |  <a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
&gt; _______________________________________________<br>
</div></div>&gt; Glasgow-haskell-users mailing list<br>
&gt; <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Austin Seipp, Haskell Consultant<br>
Well-Typed LLP, <a href="http://www.well-typed.com/" target="_blank">http://www.well-typed.com/</a><br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</font></span></blockquote></div><br></div>