Skip to content

cabal install hs (from hackage) fails with cabal-3.14.1.1 #1

@andreasabel

Description

@andreasabel

Is this a bug in hs or in cabal?

$ cabal install hs
...
Failed to build exe:hs from hs-0.1.0.2.
Build log ( /Users/abela/.cabal/logs/ghc-9.10.1/hs-0.1.0.2-305cb5ab.log ):
Configuring executable 'hs' for hs-0.1.0.2...
Preprocessing executable 'hs' for hs-0.1.0.2...
Building executable 'hs' for hs-0.1.0.2...
app/HS.hs:3:8: error: [GHC-28623]
    File name does not match module name:
    Saw     : ‘Main’
    Expected: ‘HS’
  |
3 | module Main where
  |        ^^^^

Error: [Cabal-7125]
Failed to build exe:hs from hs-0.1.0.2. See the build log above for details.

 $  cabal --version                           
cabal-install version 3.14.1.1
compiled using version 3.14.1.1 of the Cabal library 

Update: probably not in recent cabal or ghc, I tried back to cabal-3.10.3 and ghc-9.2.8.

Sorry to disturb, RIP, Chris!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions