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? (Michael Orlitzky)
2. Re: How to check the help page of a function? (Henk-Jan van Tuyl)
----------------------------------------------------------------------
Message: 1
Date: Sat, 16 May 2015 22:09:10 -0400
From: Michael Orlitzky <[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=utf-8
On 05/16/2015 07:18 PM, Peng Yu wrote:
> Many other languages have help pages in the command (see help() in
> python and R). Why haskell doesn't have such a feature?
>
The 40% joking answer is because Haskell functions don't have
documentation =)
------------------------------
Message: 2
Date: Sun, 17 May 2015 10:24:42 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: "Peng Yu" <[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.xyrtnk18pz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
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>
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
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
--
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 83, Issue 46
*****************************************