<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>This are listing expect alternatives:
      <a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Expect">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; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 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="moz-cite-prefix">24.08.2018 15:27, David McBride wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN+Tr41Bt0wP=31DyJT72MJ6pFbW3FdLF1RLDnKvpgeN0ZDNCA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <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" moz-do-not-send="true">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 class="">
                <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="HOEnZb">
              <div class="h5"><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" moz-do-not-send="true">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" moz-do-not-send="true">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_-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_-2311247134304055373m_-7908915437949624170m_-2795046598563041963mimeAttachmentHeader"></fieldset>
                            <br>
                            <pre>______________________________<wbr>_________________
Beginners mailing list
<a class="m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org" target="_blank" moz-do-not-send="true">Beginners@haskell.org</a>
<a class="m_-2311247134304055373m_-7908915437949624170m_-2795046598563041963moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a>
</pre>
                          </blockquote>
                          <br>
                        </div>
                        ______________________________<wbr>_________________<br>
                        Beginners mailing list<br>
                        <a href="mailto:Beginners@haskell.org"
                          target="_blank" moz-do-not-send="true">Beginners@haskell.org</a><br>
                        <a
                          href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
                          rel="noreferrer" target="_blank"
                          moz-do-not-send="true">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
                      </blockquote>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            Beginners mailing list<br>
            <a href="mailto:Beginners@haskell.org"
              moz-do-not-send="true">Beginners@haskell.org</a><br>
            <a
              href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>