[Haskell-cafe] Haskell Debugging
Valentin Gjorgjioski
valentin.gjorgjioski at ijs.si
Mon Nov 13 10:32:34 EST 2006
I'm pretty new in Haskell, few days since I started learning it. I want
to debu my programs. I'm currently using WinHugs, and I prefer debugger
for this.
I tried googling and I found Hugs.Observer.
I like it how it works, but still I have one BIG problem with it. It
doesn't work well with floats.
Following example
import Hugs.Observe
ex8 :: [Float]
ex8 = (observe "after reverse" ) reverse [10.0,7.0,3.0,0.0,4.0]
gives me
>ex8
[4.0,0.0,3.0,7.0,10.0]
>>>>>>> Observations <<<<<<
after reverse
{ \ ($-990871 : $-990888 : $-990905 : $-990922 : $-990939 : []) ->
$-990939 : $-990922 : $-990905 : $-990888 : $-990871 : []
}
Which is not useful. After that I try to install
http://www.haskell.org/hat/
but for installing that I need hmake, and when I try to install hmake, I
typed first configure -prefix, and then, make.
cd src/hmake; make HC=ghc BUILDCOMP=ghc all config
make[1]: Entering directory `/cygdrive/E/Haskell/hmake/src/hmake'
Makefile:59: *** target pattern contains no `%'. Stop.
make[1]: Leaving directory `/cygdrive/E/Haskell/hmake/src/hmake'
make: *** [targets/ix86-CYGWIN_NT-5.1/hmake-ghc] Error 2
as you can see I'm using cygwin.
I'm really stacked here, and I will kindly ask for help.
Thanks,
Valentin
--
Valentin Gjorgjioski
Bachelor of Computer Science
Department of Knowledge Technologies, Jozef Stefan Institute
Jamova 39, SI-1000 Ljubljana, Slovenia
Phone: +386 1 477 3343
Fax: +386 1 477 3315
Web: http://kt.ijs.si/ValentinGjorgjioski/
Email: Valentin.Gjorgjioski at ijs.si
More information about the Haskell-Cafe
mailing list