You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stack repl --package's help suggests it can support multiple packages, but it gives an obscure error for the obvious syntaxes (comma or space-separated, as supported by stack script --package):
$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0
$ stack repl --help | grep '\--package'
[--with-ghc GHC] [--[no-]load] [--package PACKAGE(S)]
--package PACKAGE(S) Additional package(s) that must be installed
$ stack repl Shake.hs --package regex,shake
Error parsing targets: Directory not found: regex,shake
$ stack repl Shake.hs --package 'regex shake'
Error parsing targets: Directory not found: regex shake
PS I'm interested in this because specifying multiple packages without using a space seems possibly helpful in hie.yaml files.
The text was updated successfully, but these errors were encountered:
simonmichael
changed the title
situation with stack repl --package & multiple packages is unclear
situation with stack repl --package and multiple packages is unclear
Dec 8, 2020
As far as I understand the way to use multiple package would be by repeating --package <package for every one of them, probably we should improve CLI help here.
stack repl --package
's help suggests it can support multiple packages, but it gives an obscure error for the obvious syntaxes (comma or space-separated, as supported by stack script --package):PS I'm interested in this because specifying multiple packages without using a space seems possibly helpful in hie.yaml files.
The text was updated successfully, but these errors were encountered: