That did it.  I&#39;ve added &quot;:set -package applicative-numbers&quot; to my .ghci and am back in business.  Thanks!<br><br>IIUC, there&#39;s an inconsistency in ghci&#39;s treatment of modules vs include files, in that modules will be found without -package, but include files won&#39;t.  Room for improvement, perhaps.<br>
<br>  - Conal<br><br><div class="gmail_quote">On Sun, Mar 15, 2009 at 5:27 AM, Duncan Coutts <span dir="ltr">&lt;<a href="mailto:duncan.coutts@worc.ox.ac.uk">duncan.coutts@worc.ox.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, 2009-03-14 at 23:43 -0700, Conal Elliott wrote:<br>
&gt; The applicative-numbers package [1] provides an include file.  With<br>
&gt; ghci, the include file isn&#39;t being found, though with cabal+ghc it is<br>
&gt; found.<br>
&gt;<br>
&gt; My test source is just two lines:<br>
&gt;<br>
&gt; {-# LANGUAGE CPP #-}<br>
&gt; #include &quot;ApplicativeNumeric-inc.hs&quot;<br>
&gt;<br>
&gt; I&#39;d sure appreciate it if someone could take a look at the .cabal file<br>
&gt; [2] and tell me if I&#39;m doing something wrong.  And/or point me to one<br>
&gt; or more working examples of cabal packages that export include files<br>
&gt; that are then findable via ghci.<br>
<br>
</div>This sounds like a chicken and egg problem. To know which package<br>
include directories to use GHCi needs to know which packages your module<br>
uses. However to work out which packages it needs it has to load the<br>
module which means pre-processing it!<br>
<br>
With cabal we get round this problem because Cabal calls ghc with<br>
-package this -package that etc and so when ghc cpp&#39;s the module it does<br>
know which package include directories to look in.<br>
<br>
So if you did ghci -package applicative-numbers then it should work. I&#39;m<br>
afraid I don&#39;t have any good suggestion for how to make it work with<br>
ghci without having to specify any options at all.<br>
<font color="#888888"><br>
Duncan<br>
<br>
</font></blockquote></div><br>