Defining instances of superclasses

2002-06-30 Thread Zdenek Dvorak
is, that I don't get Show instance for a, but for isomorphic type Str a; this is a bit annoying when I want to use it; also I may no longer use deriving Show on types containing such structure. Is there some better way how to do this? Zdenek Dvorak

Re: how to debug?

2002-10-06 Thread Zdenek Dvorak
am fails with some really informative error message of type '*** Exception: Maybe.fromJust: Nothing', compiling it with profiling (-prof -auto-all) and running with +RTS -xc will give you a stack dump (pretty useful, well hidden feature :-) Zdenek Dvorak ___

Re: need help optimizing a function

2002-10-08 Thread Zdenek Dvorak
x27;!' would have to produce a new array too; but then you must pass it everywhere and effectively you are doing the work monads would do for you. So in general you must choose -- either your programs will be nice and functional, but you will have to use structures with (some kind of) lo