typelead / etlas

Etlas, the build tool and package manager for the Eta programming language
63 stars 10 forks source link

`etlas deps` doesn't work for executable-only projects #20

Closed carymrobbins closed 7 years ago

carymrobbins commented 7 years ago

Given the following cabal file, etlas deps fails with Not a library -

name:                example
version:             0.0.1
license:             AllRightsReserved
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10

executable example
  main-is:             Main.hs
  build-depends:       base >=4.8 && <4.9
  hs-source-dirs:      src/main/eta
  default-language:    Haskell2010

Adding a dummy library stanza seems to resolve the issue.