
I need to improve my Haskell debugging skills. I know of quickcheck, but that's for testing. It seems that: - Debug.Trace and - dynamic breakpoints in GHCi Are the two easy ways to check the state of your program at a specific point in execution. Is there another simple tool that I should know about? Any tips? Thank you, Dimitri

That's interesting.
I must confess that I find the need to debug in Haskell greatly reduced
because I tend to design stuff in small incremental steps in ghci / emac in
a Lisp like way which means that I am reasoning out my code as I write it
which usually means there are no logical bugs at least.
However I can see the need on occasion to maybe debug into issues relating
to threads / STM and behaviours between processes in general.
Have you tried using Leksah, the Haskell IDE?
On 9 April 2015 at 02:21, Dimitri DeFigueiredo
I need to improve my Haskell debugging skills. I know of quickcheck, but that's for testing. It seems that:
- Debug.Trace and - dynamic breakpoints in GHCi
Are the two easy ways to check the state of your program at a specific point in execution. Is there another simple tool that I should know about? Any tips?
Thank you,
Dimitri
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

I did try to use Leksah, but did not like the interface. I don't think it helped with debugging, but may be mistaken. I'm now using sublime 3 and hoping that someday I will be able to use Atom. Emacs appears to be the standard, but it is just too ugly for me. Dimitri On 09/04/15 02:03, emacstheviking wrote:
That's interesting.
I must confess that I find the need to debug in Haskell greatly reduced because I tend to design stuff in small incremental steps in ghci / emac in a Lisp like way which means that I am reasoning out my code as I write it which usually means there are no logical bugs at least.
However I can see the need on occasion to maybe debug into issues relating to threads / STM and behaviours between processes in general.
Have you tried using Leksah, the Haskell IDE?
On 9 April 2015 at 02:21, Dimitri DeFigueiredo
mailto:defigueiredo@ucdavis.edu> wrote: I need to improve my Haskell debugging skills. I know of quickcheck, but that's for testing. It seems that:
- Debug.Trace and - dynamic breakpoints in GHCi
Are the two easy ways to check the state of your program at a specific point in execution. Is there another simple tool that I should know about? Any tips?
Thank you,
Dimitri
_______________________________________________ Beginners mailing list Beginners@haskell.org mailto: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

I've used Emacs for 30 years so I guess I am biased! One of the real plus
points is its auto-indenting, it's great for avoiding problems on that
front IMHO. "Ugly" is subjective I guess... try vim them, YouTube has some
great videos on Vim and Haskell.
https://www.youtube.com/results?search_query=haskell+vim
The Haskell Live video is good.
All the best,
Sean.
On 10 April 2015 at 01:18, Dimitri DeFigueiredo
I did try to use Leksah, but did not like the interface. I don't think it helped with debugging, but may be mistaken. I'm now using sublime 3 and hoping that someday I will be able to use Atom. Emacs appears to be the standard, but it is just too ugly for me.
Dimitri
On 09/04/15 02:03, emacstheviking wrote:
That's interesting.
I must confess that I find the need to debug in Haskell greatly reduced because I tend to design stuff in small incremental steps in ghci / emac in a Lisp like way which means that I am reasoning out my code as I write it which usually means there are no logical bugs at least.
However I can see the need on occasion to maybe debug into issues relating to threads / STM and behaviours between processes in general.
Have you tried using Leksah, the Haskell IDE?
On 9 April 2015 at 02:21, Dimitri DeFigueiredo
wrote: I need to improve my Haskell debugging skills. I know of quickcheck, but that's for testing. It seems that:
- Debug.Trace and - dynamic breakpoints in GHCi
Are the two easy ways to check the state of your program at a specific point in execution. Is there another simple tool that I should know about? Any tips?
Thank you,
Dimitri
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ 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

Emacs can be configured to look great, see the following quora answer for example. You can just try to get used to it and
add your configuration incremently. After a few time, it will be of beautiful appearance.
http://www.quora.com/How-can-I-go-from-good-to-great-in-Emacs
--m00nlight
在2015年04月10 08时18分, "Dimitri DeFigueiredo"

On Thu, 09 Apr 2015 03:21:05 +0200, Dimitri DeFigueiredo
I need to improve my Haskell debugging skills. I know of quickcheck, but that's for testing. It seems that:
- Debug.Trace and - dynamic breakpoints in GHCi
Are the two easy ways to check the state of your program at a specific point in execution. Is there another simple tool that I should know about? Any tips?
GHC 7.10 can generate debug information, see the Release notes for version 7.10.1 [0]. Regards, Henk-Jan van Tuyl [0] https://downloads.haskell.org/~ghc/7.10.1/docs/html/users_guide/release-7-10... -- 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 --
participants (4)
-
Dimitri DeFigueiredo
-
emacstheviking
-
Henk-Jan van Tuyl
-
m00nlight