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: How to check the help page of a function? (Peng Yu)
2. Re: How to check the help page of a function? (Mike Meyer)
3. Re: How to check the help page of a function? (Francesco Ariis)
4. Re: How to check the help page of a function? (Henk-Jan van Tuyl)
5. Re: Parser (Mike Houghton)
6. Re: How to check the help page of a function? (Kim-Ee Yeoh)
7. which ones to use (Roelof Wobben)
8. Re: which ones to use
(Sumit Sahrawat, Maths & Computing, IIT (BHU))
----------------------------------------------------------------------
Message: 1
Date: Sun, 17 May 2015 07:54:36 -0500
From: Peng Yu <[email protected]>
To: Henk-Jan van Tuyl <[email protected]>
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to check the help page of a
function?
Message-ID:
<cabrm6wk25toqqaiomayogy8hpbqb9y3s-cc93edbeqotovh...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
> GHCi has such a command:
> :doc <function name>
>
> For example:
> Prelude> :doc head
> Prelude head :: [a] -> a
>
> Extract the first element of a list, which must be non-empty.
>
> From package base
> head :: [a] -> a
Where is it? I don't see it.
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
Prelude> :doc head
unknown command ':doc'
use :? for help.
Prelude>
--
Regards,
Peng
------------------------------
Message: 2
Date: Sun, 17 May 2015 08:00:51 -0500
From: Mike Meyer <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to check the help page of a
function?
Message-ID:
<CAD=7u2czbs6b4t44jgwtz5w197bkpbq0ezp6ml_8-66sgbv...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sun, May 17, 2015 at 7:54 AM, Peng Yu <[email protected]> wrote:
> > GHCi has such a command:
> > :doc <function name>
> >
> > For example:
> > Prelude> :doc head
> > Prelude head :: [a] -> a
> >
> > Extract the first element of a list, which must be non-empty.
> >
> > From package base
> > head :: [a] -> a
>
> Where is it? I don't see it.
>
> GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
> Prelude> :doc head
> unknown command ':doc'
> use :? for help.
> Prelude>
>
I suspect the author's environment defines the doc command, as it's not
built in. Links to two different ways (one that opened pages in a web
browser, and the other that invoked the hoogle command) to do that have
already been posted to the thread.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150517/eb4ad557/attachment-0001.html>
------------------------------
Message: 3
Date: Sun, 17 May 2015 15:18:58 +0200
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] How to check the help page of a
function?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On Sun, May 17, 2015 at 08:00:51AM -0500, Mike Meyer wrote:
> I suspect the author's environment defines the doc command, as it's not
> built in. Links to two different ways (one that opened pages in a web
> browser, and the other that invoked the hoogle command) to do that have
> already been posted to the thread.
Probably haskell-docs [1]
[1] http://hackage.haskell.org/package/haskell-docs
------------------------------
Message: 4
Date: Sun, 17 May 2015 16:12:38 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: "Peng Yu" <[email protected]>, "Francesco Ariis"
<[email protected]>
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to check the help page of a
function?
Message-ID: <op.xyr9rcy1pz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
On Sun, 17 May 2015 10:24:42 +0200, Henk-Jan van Tuyl <[email protected]>
wrote:
> On Sun, 17 May 2015 01:18:50 +0200, Peng Yu <[email protected]> wrote:
>
>> Many other languages have help pages in the command (see help() in
>> python and R). Why haskell doesn't have such a feature?
>
> GHCi has such a command:
> :doc <function name>
I forgot that this is not the default behavior of GHCi; to get this
command, install Hoogle[0][1] and create a file called .ghci in your home
directory, with the line:
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
Regards,
Henk-Jan van Tuyl
[0] https://hackage.haskell.org/package/hoogle
[1] https://wiki.haskell.org/Hoogle
--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
------------------------------
Message: 5
Date: Sun, 17 May 2015 15:28:59 +0100
From: Mike Houghton <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Parser
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Thanks guys.
Finally got there and I?m sorry, I should have put more detail in the original
question.
movesParser :: Parser Moves
movesParser = do
move <- moveParser
char ';'
moves <- many moveParser
return $ Moves ([move] ++ moves)
main = do
let mvsIo = readFile ?moves.txt? ? IO String
mvs <- mvsIo ? String
let m = parse movesParser "Parsing Moves" mvs
return m
I must say that the people on this list are very helpful and polite.
Also Haskell is a challenge but so rewarding. It?s become the ?itch I have to
scratch?.
Thanks
> On 17 May 2015, at 00:13, Henk-Jan van Tuyl <[email protected]> wrote:
>
> On Sat, 16 May 2015 23:18:04 +0200, Dennis J. McWherter, Jr.
> <[email protected]> wrote:
>
> :
>> processedLines <- return (fmap moveParser $ lines contents)
> :
>
> Or, a bit simpler:
> let processedLines = fmap moveParser $ lines contents
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> Folding@home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get us
> closer sooner. Watch the video.
> http://folding.stanford.edu/
>
>
> http://Van.Tuyl.eu/
> http://members.chello.nl/hjgtuyl/tourdemonad.html
> Haskell programming
> --
------------------------------
Message: 6
Date: Mon, 18 May 2015 00:27:37 +0700
From: Kim-Ee Yeoh <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to check the help page of a
function?
Message-ID:
<CAPY+ZdSa0D20qeA50Z8RPEtUe9w5EwW4vOAHw=btp+sicls...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sun, May 17, 2015 at 6:18 AM, Peng Yu <[email protected]> wrote:
> Many other languages have help pages in the command (see help() in
> python and R). Why haskell doesn't have such a feature?
>
You could flip the question around and ask, why do Python and R insist on
incorporating emacs functionality in their REPLs instead of keeping things
orthogonal. Otherwise, there's a lot of repetition.
As Brandon explained, ghci isn't meant to be the
everything-and-the-kitchen-sink development environment.
It used to be that someone starting Haskell would have learned Unix and its
ethos beforehand. That's not a ding against you, btw, just an observation
that ghci was designed in an earlier era. Patches to ghci are most welcome!
-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150518/77c84785/attachment-0001.html>
------------------------------
Message: 7
Date: Sun, 17 May 2015 21:23:46 +0200
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] which ones to use
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed
Hello,
My linux distro has haskell-platform not avaible.
But things like ghc and cabal are avaible.
Which ones does I need so I can programm in Haskell with SublimeText 3
as editor ?
Roelof
---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
http://www.avast.com
------------------------------
Message: 8
Date: Mon, 18 May 2015 00:55:44 +0530
From: "Sumit Sahrawat, Maths & Computing, IIT (BHU)"
<[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] which ones to use
Message-ID:
<CAJbEW8MVLmGq=msngojyl4hsxmnvr8tge6p80qdefculumg...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You would require atleast ghc & cabal. Everything else can be installed
using cabal.
Try getting ghc version >= 7.8.3 and cabal version >= 1.20
On 18 May 2015 at 00:53, Roelof Wobben <[email protected]> wrote:
> Hello,
>
> My linux distro has haskell-platform not avaible.
> But things like ghc and cabal are avaible.
>
> Which ones does I need so I can programm in Haskell with SublimeText 3 as
> editor ?
>
> Roelof
>
>
> ---
> Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
> http://www.avast.com
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
--
Regards
Sumit Sahrawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150518/3b87226b/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 83, Issue 47
*****************************************