Cabal install fails, don't understand why

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
Hi

I've migrated my HsShellScript library to Cabal 3.0 and now I get an error
when I try to install it:

-----snip-----
desktop /usr/local/src/hsshellscript $ cabal install --user
Wrote tarball sdist to
/usr/local/src/hsshellscript/dist-newstyle/sdist/hsshellscript-3.6.0.tar.gz
Resolving dependencies...
Error: cabal: Cannot build the executables in the package hsshellscript
because it does not contain any executables. Check the .cabal file for the
package and make sure that it properly declares the components that you
expect.
-----snip-----

I don't understand this error message. Why does it think it should build
executables? There aren't any. It's a library only.

The hsshellscript.cabal file is this (comments and description removed):

-----snip-----
cabal-version:      3.0
name:               hsshellscript
version:            3.6.0
synopsis:           Using Haskell for Unix shell scripting tasks
Description:         (...)
Homepage:            http://www.volker-wysk.de/hsshellscript/
license:            LGPL-3.0-or-later
license-file:       LICENSE
author:             Volker Wysk
maintainer:         [email protected]
Copyright:          (C) 2021-2024 by Volker Wysk
category:           System
build-type:         Simple
extra-doc-files:    CHANGELOG.md, README.md
Extra-source-files:  Makefile
common warnings
Library
  import:             warnings
  Exposed-Modules:    HsShellScript
                      HsShellScript.Args
                      HsShellScript.Paths
                      HsShellScript.Shell
  Other-Modules:      HsShellScript.Commands
                      HsShellScript.GetOpt
                      HsShellScript.Misc
                      HsShellScript.ProcErr
  Default-Extensions: DeriveDataTypeable,
                      ForeignFunctionInterface,
                      RecordWildCards,
                      ScopedTypeVariables,
                      NamedFieldPuns,
                      StandaloneDeriving
  Build-depends:      base ^>=4.13.0.0,
                      directory >= 1.3.6 && < 1.4,
                      unix >= 2.7.2 && < 2.8,
                      parsec >= 3.1.14 && < 3.2,
                      random >= 1.1 && < 1.2
  hs-source-dirs:     src
  C-Sources:          src/cbits/hsshellscript.c
  default-language:   Haskell2010
source-repository head
  type:     git
  location: https://gitlab.com/volkerwysk/hsshellscript.git
-----snip-----

Thanks for any help!

Cheers,
Volker
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.