[Hackage] #522: Nicer error message when source files are not found.

Hackage trac at galois.com
Fri Mar 13 10:07:31 EDT 2009


#522: Nicer error message when source files are not found.
------------------------------+---------------------------------------------
  Reporter:  duncan           |        Owner:         
      Type:  enhancement      |       Status:  new    
  Priority:  low              |    Milestone:         
 Component:  Cabal library    |      Version:  1.6.0.1
  Severity:  minor            |     Keywords:         
Difficulty:  easy (<4 hours)  |   Ghcversion:         
  Platform:                   |  
------------------------------+---------------------------------------------
 It can be confusing sometimes when source files are not found. Eg:

 {{{
 $ runhaskell Setup.lhs build
 Preprocessing executables for nm8-0.1...
 Setup.lhs: can't find source for Data.MaybeI in src, dist/build/autogen
 $ find src/ | grep Data
 src//Data
 src//Data/MabyeI.hs
 }}}

 In this case it's simply a spelling error, but it's still hard to spot
 initially.

 The suggestion is to look look at all files in that directory and do an
 edit distance match and suggest any similar file. This would also help for
 case-sensitivity mistakes, see #521.

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


More information about the cabal-devel mailing list