Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for cabal-install scripts? #369

Open
ulysses4ever opened this issue Dec 2, 2022 · 0 comments
Open

Support for cabal-install scripts? #369

ulysses4ever opened this issue Dec 2, 2022 · 0 comments

Comments

@ulysses4ever
Copy link
Contributor

cabal-install has had support for so called scripts for some while now (cf. the docs, starting from "run supports running script files that use a certain format"). I wish ghcid could support them too. Currently, on a buggy script I get an infinite loop. For example:

$ echo '#!/usr/bin/env cabal
  {- cabal:
  build-depends: base
  -}

  wibble' > bug.hs

$ ghcid --command='cabal repl bug.hs'

Note, that although the docs says it's cabal run that supports the scripts, they are actually quite close to first-class citizens in cabal and can be cabal build and cabal repl (at least, in cabal 3.8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant