[GHC] #1029: ghc fails to find installed user package even though "ghc-pkg list" shows it

GHC trac at galois.com
Mon Nov 27 00:18:40 EST 2006


#1029: ghc fails to find installed user package even though "ghc-pkg list" shows
it
-------------------------+--------------------------------------------------
    Reporter:  xoltar    |       Owner:                        
        Type:  bug       |      Status:  new                   
    Priority:  normal    |   Milestone:                        
   Component:  Compiler  |     Version:  6.4.2                 
    Severity:  normal    |    Keywords:  ghc-pkg package --user
  Difficulty:  Unknown   |    Testcase:                        
Architecture:  x86       |          Os:  FreeBSD               
-------------------------+--------------------------------------------------
Building haskell-cgi (Bjorn Bringert's) requires the xhtml package. I
 built and installed that package (with setup install --user, since I don't
 have root access on this box), and ghc-pkg list shows it in place.
 "./setup configure" in the haskell-cgi tree finds the xhtml package.
 However, when I go to "./setup build", it can't find the Text.Html module
 within the xhtml package. Perhaps there's something I'm doing wrong with
 the user packages settings?

 [me at xoltar ~/src/haskell-cgi]$ ./setup build
 Preprocessing library cgi-compat-2006.10.28...
 Building cgi-compat-2006.10.28...
 Chasing modules from:
 Network.NewCGI,Network.CGI.Monad,Network.CGI.Protocol,Netw
 ork.CGI.Compat,Network.CGI.Cookie,Network.CGI.Multipart,Network.CGI.RFC822Header
 s
 Could not find module `Text.XHtml':
   use -v to see a list of the files searched for
   (imported from ./Network/NewCGI.hs)
 [me at xoltar ~/src/haskell-cgi]$ ghc-pkg list
 /usr/local/lib/ghc-6.4.2/package.conf:
     Cabal-1.1.4, HUnit-1.1, QuickCheck-1.0, base-1.0, (concurrent-1.0),
     (data-1.0), fgl-5.2, haskell-src-1.0, haskell98-1.0,
     (hssource-1.0), (lang-1.0), mtl-1.0, (net-1.0), network-1.0,
     parsec-1.0, (posix-1.0), readline-1.0, rts-1.0, stm-1.0,
     template-haskell-1.0, (text-1.0), unix-1.0, (util-1.0)
 /home/private/.ghc/i386-freebsd-6.4.2/package.conf:
     fps-0.8, xhtml-2006.9.13
 [me at xoltar ~/src/haskell-cgi]$ ./setup build -v
 Preprocessing library cgi-compat-2006.10.28...
 Building cgi-compat-2006.10.28...
 /usr/local/bin/ghc -package-name cgi-compat --make -fallow-overlapping-
 instances
  -fallow-undecidable-instances -O2 -Wall -hide-all-packages -i
 -idist/build/auto
 gen -i. -odir dist/build -hidir dist/build -package base-1.0 -package
 network-1.
 0 -package parsec-1.0 -package mtl-1.0 -package xhtml-2006.9.13 -package
 fps-0.8
  Network.NewCGI Network.CGI.Monad Network.CGI.Protocol Network.CGI.Compat
 Networ
 k.CGI.Cookie Network.CGI.Multipart Network.CGI.RFC822Headers
 Chasing modules from:
 Network.NewCGI,Network.CGI.Monad,Network.CGI.Protocol,Netw
 ork.CGI.Compat,Network.CGI.Cookie,Network.CGI.Multipart,Network.CGI.RFC822Header
 s
 Could not find module `Text.XHtml':
   use -v to see a list of the files searched for
   (imported from ./Network/NewCGI.hs)
 [me at xoltar ~/src/haskell-cgi]$

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1029>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list