Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Just wanted to share some GHCI macros with fellow
beginners (Andrew Bernard)
----------------------------------------------------------------------
Message: 1
Date: Sat, 1 Oct 2016 20:42:47 +1000
From: Andrew Bernard <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Just wanted to share some GHCI macros
with fellow beginners
Message-ID:
<CAK5QfnWkkN0P26-JVeUys8cXKLXA73jHZS7pUQEn7w7VFj3N=w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi Boon,
What's wrong with these?
> :!pwd
> :!git
Andrew
On 1 October 2016 at 14:54, Lai Boon Hui <[email protected]> wrote:
> Hi fellow beginners,
>
> wanted to share some macros you can add to your ghci config file so that
> you don't have to keep switching between ghci and command line. In my case
> i use Git a lot
>
> :def pwd (\_-> System.Directory.getCurrentDirectory >>= print >> return "")
> :def gitA (\_ -> System.Process.rawSystem "git" ["add", "-A"] >>= print >>
> return "")
> :def gitC (\m -> System.Process.rawSystem "git" ["commit", "-am", m] >>=
> print >> return "")
> :def gitP (\_ -> System.Process.rawSystem "git" ["push"] >>= print >> return
> "")
>
>
> --
> Best Regards,
> Boon Hui
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20161001/76360dfe/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 100, Issue 2
*****************************************