You should be able to run something like this:echo 'putStrLn "hi"' | stack exec -- ghci -XOverloadedStrings_______________________________________________On Fri, Aug 24, 2018 at 8:21 AM, Paum B. <fraybauhaus@gmail.com> wrote:Actually, I dont know if I have asked good question to what I need.So, I would like to run the process:stack ghc -- --interactive -XOverloadedStringsand then, somehow from 'outside' push string commands to it...On Fri, Aug 24, 2018 at 2:08 PM Paum B. <fraybauhaus@gmail.com> wrote:oh, thats good - thank you!is there any example in bash?thnxOn Fri, Aug 24, 2018 at 2:02 PM Paul <aquagnu@gmail.com> wrote:_______________________________________________Sure. I remember old days Tcl/Tk utility "expect" for such interactive scripting sessions. Open a pipes and communicate with process :) Today there are tools similar to "expect" for scripting command line utilities.
Also Emacs works with GHCi (interro) in such way. Also Dante IMHO. Visual Studio Code Haskelly and Haskerro, etc..
24.08.2018 14:58, Paum B. wrote:
Hi List,
It is possibile to run:
stack ghc -- --interactive -XOverloadedStrings
and then send to it strings (commands) externally?Thanks
paum
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners