
#714: cabal: Couldn't read cabal file ".\\HaTeX\\1.0.0\\HaTeX.cabal" ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.3 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.12.1 Platform: Windows | ---------------------------------+------------------------------------------ Changes (by duncan): * difficulty: unknown => normal Comment: So the problem here is that the HaTeX.cabal file uses a BOM (a byte order mark). Newer Cabal lib versions will happily ignore the BOM at the beginning of the file but older versions will not. The hackage upload checker uses the new code so it accepts the package. We could allow the BOM when the package declares that it needs a sufficiently recent Cabal version, or we could make hackage reject packages that use the BOM. In the mean time we should just edit the HaTex.cabal in the index on the server to remove the BOM. With the current code it's a bit tricky to check for the BOM because it is discarded when reading the file. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/714#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects