[Hackage] #24: Cabal shouldn't try to build GHCI libs on platforms without GHCI

Hackage trac at galois.com
Sun Dec 30 06:37:42 EST 2007


#24: Cabal shouldn't try to build GHCI libs on platforms without GHCI
------------------------------------+---------------------------------------
  Reporter:  jgoerzen at complete.org  |        Owner:  ijones         
      Type:  defect                 |       Status:  new            
  Priority:  normal                 |    Milestone:  Cabal-1.4      
 Component:  Cabal library          |      Version:                 
  Severity:  normal                 |   Resolution:                 
  Keywords:                         |   Difficulty:  easy (<4 hours)
Ghcversion:  6.2.1                  |     Platform:  Linux          
------------------------------------+---------------------------------------
Changes (by duncan):

  * difficulty:  hard => easy (<4 hours)

Comment:

 Implementing this just for ghc 6.8 and later should be easy since we can
 parse the output of ghc --info to find the:

 {{{
  ,("Have interpreter","YES")
 }}}

 read the output of {{{ghc --info}}} at type :: [(String, String)] and
 lookup the key "Have interpreter" and check the corresponding value
 against "YES" / "NO".

 That should be used to set the default of whether ghci libs are built or
 not. Perhaps if the user explicitly asks for them and they cannot be
 supported there should be a warning.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/24#comment:6>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list