Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Re: Hutton ex 7.7 and 7.8 (Francesco Ariis) 2. send string to stack ghc (Paum B.) 3. Re: send string to stack ghc (Paul) 4. Re: send string to stack ghc (Paum B.) 5. Re: send string to stack ghc (Paum B.) 6. Re: send string to stack ghc (David McBride) ---------------------------------------------------------------------- Message: 1 Date: Fri, 24 Aug 2018 12:00:27 +0200 From: Francesco Ariis <fa...@ariis.it> To: beginners@haskell.org Subject: Re: [Haskell-beginners] Hutton ex 7.7 and 7.8 Message-ID: <20180824100027.njrjma56ahrij...@x60s.casa> Content-Type: text/plain; charset=us-ascii Hello Trent, On Fri, Aug 24, 2018 at 02:45:46AM -0700, trent shipley wrote: > I am mostly looking for style feedback, although if there are any obvious > logic errors, I'd be "happy" to learn about those too. Running hlint is always useful. e.g. it will spot redundant brackets: p.hs:35:40: Suggestion: Redundant bracket Found: (length xs) - 1 Why not: length xs - 1 and unidiomatic expressions like p.hs:54:10: Warning: Use concatMap Found: concat . map (make8 . int2bin . ord) Why not: concatMap (make8 . int2bin . ord) ------------------------------ Message: 2 Date: Fri, 24 Aug 2018 13:58:22 +0200 From: "Paum B." <fraybauh...@gmail.com> To: beginners@haskell.org Subject: [Haskell-beginners] send string to stack ghc Message-ID: <caojfzx36vn2dk4hfhxjq0vtrt+-n--dmp2r4fr0+obnr2no...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi List, It is possibile to run: stack ghc -- --interactive -XOverloadedStrings and then send to it strings (commands) externally? Thanks paum -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180824/2166e756/attachment-0001.html> ------------------------------ Message: 3 Date: Fri, 24 Aug 2018 15:01:17 +0300 From: Paul <aqua...@gmail.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] send string to stack ghc Message-ID: <4c7e5cd3-b167-50df-7100-2089948f6...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180824/28310d37/attachment-0001.html> ------------------------------ Message: 4 Date: Fri, 24 Aug 2018 14:08:28 +0200 From: "Paum B." <fraybauh...@gmail.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] send string to stack ghc Message-ID: <CAOjfzX1VjiVrK+O-wvS70cMFEbYMt0WU65WgKZWk=mb3jj0...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" oh, thats good - thank you! is there any example in bash? thnx On Fri, Aug 24, 2018 at 2:02 PM Paul <aqua...@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 > listBeginners@haskell.orghttp://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180824/9e941597/attachment-0001.html> ------------------------------ Message: 5 Date: Fri, 24 Aug 2018 14:21:41 +0200 From: "Paum B." <fraybauh...@gmail.com> To: beginners@haskell.org Subject: Re: [Haskell-beginners] send string to stack ghc Message-ID: <caojfzx29r4thozbd+faasfa6zvm8tnk2jqrveaypcanwuwx...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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 -XOverloadedStrings and then, somehow from 'outside' push string commands to it... On Fri, Aug 24, 2018 at 2:08 PM Paum B. <fraybauh...@gmail.com> wrote: > oh, thats good - thank you! > > is there any example in bash? > > thnx > > On Fri, Aug 24, 2018 at 2:02 PM Paul <aqua...@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 >> listBeginners@haskell.orghttp://mail.haskell.org/cgi-bin/mailman/listinfo/beginners >> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180824/090b48c1/attachment-0001.html> ------------------------------ Message: 6 Date: Fri, 24 Aug 2018 08:27:56 -0400 From: David McBride <toa...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] send string to stack ghc Message-ID: <CAN+Tr41Bt0wP=31dyjt72mj6pfbw3fdlf1rldnkvpgen0zd...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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. <fraybauh...@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 -XOverloadedStrings > > and then, somehow from 'outside' push string commands to it... > > On Fri, Aug 24, 2018 at 2:08 PM Paum B. <fraybauh...@gmail.com> wrote: > >> oh, thats good - thank you! >> >> is there any example in bash? >> >> thnx >> >> On Fri, Aug 24, 2018 at 2:02 PM Paul <aqua...@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 >>> listBeginners@haskell.orghttp://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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180824/fd01c2f7/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 122, Issue 16 ******************************************