Ticket #292 (closed defect: fixed)

Opened 6 months ago

Last modified 4 months ago

warnings in Paths_pkgname module on windows

Reported by: duncan Assigned to:
Priority: normal Milestone:
Component: Cabal library Version: 1.2.3.0
Severity: minor Keywords:
Cc: Difficulty: very easy (<1 hour)
GHC Version: 6.8.2 Platform: Windows

Description

If you build the Paths_pkgname module that Cabal generates on windows then you get these kinds of warnings:

dist\build\autogen/Paths_cabal_install.hs:12:0:
    Warning: Module `Data.Maybe' is imported, but nothing from it is used,
               except perhaps instances visible in `Data.Maybe'
             To suppress this warning, use: import Data.Maybe()

dist\build\autogen/Paths_cabal_install.hs:19:0:
    Warning: Definition but no type signature for `prefix'
             Inferred type: prefix :: [Char]

dist\build\autogen/Paths_cabal_install.hs:20:0:
    Warning: Definition but no type signature for `bindirrel'
             Inferred type: bindirrel :: [Char]

dist\build\autogen/Paths_cabal_install.hs:73:14:
    Warning: This binding for `p' shadows an existing binding
             In a case alternative

dist\build\autogen/Paths_cabal_install.hs:80:9:
    Warning: This binding for `path' shadows an existing binding
             In a case alternative

It'd be nice if we generated code that gave no warnings so that people could make -Wall clean packages on Windows.

Change History

08/12/08 15:13:30 changed by duncan

  • status changed from new to closed.
  • resolution set to fixed.
Tue Aug 12 17:07:31 BST 2008  Duncan Coutts <duncan@haskell.org>
  * Don't use tab characters in the generated Paths module

Tue Aug 12 22:13:49 BST 2008  Duncan Coutts <duncan@haskell.org>
  * Fix warnings in Windows Paths_pkgname module