Hi,

I use Haskell quite a lot for small scripts and one-off data processing 
tasks, and as a new user of stack, I'm really liking the "script 
interpreter" functionality, but I'm stuck trying to do something similar 
for ghci.

In many cases I end up throwing together a few functions in a haskell file 
 then running it in ghci where I can load in files with data, maybe tinker 
with it a bit then run the functions defined to process it.  I don't know 
if I'm just doing something wrong, but so far I've failed to find any way 
to get this to work along with the useful "put the command line options in 
a first line comment" feature of stack.

"stack ghci" seems intent on working with a project, but I can work on an 
individual mybits.hs file using "stack exec --package some-package ghci 
mybits.hs".  However, if I put "-- stack exec --package some-package ghci" 
at the start of the file and use "stack mybits.hs", I get "Invalid argument 
`exec'".

Is there a way to get this to work?

Thanks,
John

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/0cadb0d4-7df8-455b-8b0d-c91e0393e810%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to