Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/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: :trace seems not to work in ghci (Sam Coles)
2. Getting Documentation with Command Line Hoogle Results
(Changlin Li)
----------------------------------------------------------------------
Message: 1
Date: Thu, 26 Sep 2013 15:19:41 -0500
From: Sam Coles <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] :trace seems not to work in ghci
Message-ID:
<CANoDC_Q1rBKH=t0r06nzkkcumca_eptaivpevjowut49wtf...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I think the modules need to be interpreted try using.
Prelude> :l *Main
On Thu, Sep 26, 2013 at 5:35 AM, Nathan H?sken <[email protected]>wrote:
> Hey,
>
> I have a program I want to debug in ghci because it crashes with an
> exception. So I do:
>
> Prelude> :l Main
> Ok, modules loaded: Main, PlotDisplay, PlotDiagram, ForexData.
> Prelude Main> :set -fbreak-on-exception
> Prelude Main> :trace main
> (...)
> Stopped at <exception thrown>
> _exception :: e = _
> [<exception thrown>] Prelude Main> :hist
> Empty history. Perhaps you forgot to use :trace?
> [<exception thrown>] Prelude Main> :back
> no more logged breakpoints
> [<exception thrown>] Prelude Main> :force _exception
> _exception = GHC.Exception.SomeException
> (GHC.Exception.ErrorCall "Prelude.tail: empty list")
>
> What could be the reason why :hist/:back/:trace are not working?
>
> Thanks!
> Nathan
> ______________________________**_________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/**mailman/listinfo/beginners<http://www.haskell.org/mailman/listinfo/beginners>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130926/3fa472fb/attachment-0001.html>
------------------------------
Message: 2
Date: Fri, 27 Sep 2013 05:53:45 -0400
From: Changlin Li <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Getting Documentation with Command Line
Hoogle Results
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello all,
I've installed the command line version of Hoogle and everything seems
great. However, I was hoping to get a short documentation blurb with
each type signature as is the case when I search on the actual Hoogle
website.
Is there any way to enable this on the command line (I've already set
the Cabal configuration option for documentation to True) and
specifically, how can I do so for functions in Prelude and other
built-in modules?
Thanks!
Changlin Li
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 63, Issue 40
*****************************************