Hi! This blog post seems relevant: https://www.fpcomplete.com/blog/2016/08/bitrot-free-scripts
On Sunday, July 10, 2016 at 5:27:14 PM UTC-7, John Pybus wrote: > > 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/3ca30cf0-21e0-4cb1-91da-a526ecf372c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
