<div dir="ltr">many thanks, I have found what I need -> <a href="http://empty.sourceforge.net/">http://empty.sourceforge.net/</a><div><br></div><div>paum</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 24, 2018 at 2:37 PM Paul <<a href="mailto:aquagnu@gmail.com">aquagnu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>This are listing expect alternatives:
      <a class="m_7870788075724026953moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Expect" target="_blank">https://en.wikipedia.org/wiki/Expect</a>  Btw, it's easy to be done in
      Python.<br>
    </p>
    <p>Also my IMHO that better is to pass extension directives not in
      command line (it will be big) but in custom .ghci file with option
      "<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">-ghci-script".</span></p>
    <br>
    <div class="m_7870788075724026953moz-cite-prefix">24.08.2018 15:27, David McBride wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">You should be able to run something like this:
        <div><br>
        </div>
        <div>echo 'putStrLn "hi"' | stack exec -- ghci
          -XOverloadedStrings</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Aug 24, 2018 at 8:21 AM, Paum
          B. <span dir="ltr"><<a href="mailto:fraybauhaus@gmail.com" target="_blank">fraybauhaus@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Actually, I dont know if I have asked good
              question to what I need.
              <div>So, I would like to run the process:<br>
                <br>
              </div>
              <span>
                <div>stack ghc -- --interactive -XOverloadedStrings<br>
                </div>
                <div><br>
                </div>
              </span>
              <div>and then, somehow from 'outside' push string commands
                to it...</div>
            </div>
            <div class="m_7870788075724026953HOEnZb">
              <div class="m_7870788075724026953h5"><br>
                <div class="gmail_quote">
                  <div dir="ltr">On Fri, Aug 24, 2018 at 2:08 PM Paum B.
                    <<a href="mailto:fraybauhaus@gmail.com" target="_blank">fraybauhaus@gmail.com</a>>
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div dir="ltr">oh, thats good - thank you!
                      <div><br>
                      </div>
                      <div>is there any example in bash?</div>
                      <div><br>
                      </div>
                      <div>thnx</div>
                    </div>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr">On Fri, Aug 24, 2018 at 2:02 PM
                        Paul <<a href="mailto:aquagnu@gmail.com" target="_blank">aquagnu@gmail.com</a>>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                        <div text="#000000" bgcolor="#FFFFFF">
                          <p>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.</p>
                          <p>Also Emacs works with GHCi (interro) in
                            such way. Also Dante IMHO. Visual Studio
                            Code Haskelly and Haskerro, etc..<br>
                          </p>
                          <p><br>
                          </p>
                          <br>
                          <div class="m_7870788075724026953m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963moz-cite-prefix">24.08.2018
                            14:58, Paum B. wrote:<br>
                          </div>
                          <blockquote type="cite">
                            <div dir="ltr">Hi List,
                              <div><br>
                              </div>
                              <div>It is possibile to run:</div>
                              <div><br>
                              </div>
                              <div>stack ghc -- --interactive
                                -XOverloadedStrings<br>
                              </div>
                              <div><br>
                              </div>
                              <div>and then send to it strings
                                (commands) externally?</div>
                              <div>Thanks</div>
                              <div><br>
                              </div>
                              <div>paum</div>
                            </div>
                            <br>
                            <fieldset class="m_7870788075724026953m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963mimeAttachmentHeader"></fieldset>
                            <br>
                            <pre>_______________________________________________
Beginners mailing list
<a class="m_7870788075724026953m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a class="m_7870788075724026953m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
                          </blockquote>
                          <br>
                        </div>
                        _______________________________________________<br>
                        Beginners mailing list<br>
                        <a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
                        <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
                      </blockquote>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Beginners mailing list<br>
            <a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
            <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="m_7870788075724026953mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Beginners mailing list
<a class="m_7870788075724026953moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a class="m_7870788075724026953moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>