[Haskell-cafe] Announce: Monad Transformer Tutorial

2006-10-06 Thread Martin Grabmueller
Hallo all, I hereby announce a small tutorial on using monad transformers. In contrast to others found on the web, it concentrates on using them, not on their implementation. I'd like to hear comments, suggestions, etc. about it! Both PDF and Literate Haskell source available here:

[Haskell-cafe] Trying to understand HList / hMapOut

2006-10-06 Thread Matthias Fischmann
Hello, I am using a heterogenous list as in [1] all elements of which are of a given class C. I am awed by the beauty of the code (HList, not mine :-). Here is what I am trying doing: import HListPrelude data T = T Int class C a where foo :: a - Int instance C T where foo (T i) = i

[Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread Matthew Bromberg
I am trying to use Haddock for the first time on windows for a reasonably large project. I must be completely clueless because I seem to generate a lot of parse errors that have no reasonable explanation. In some cases it seems like Haddock is white space sensitive requiring the same

Re: [Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread Ivan Perez
Matthew Bromberg wrote: ... I'm not sure why an auto-documentation tool shouldn't be a bit more forgiving vis a vis it's syntax. Maybe flag errors as warnings but keep on going. ... I can't help you about the haddock thing but, in my experience, if you forgive that kind of mistakes, many

Re: [Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread SevenThunders
Ivan Perez-4 wrote: Matthew Bromberg wrote: I can't help you about the haddock thing but, in my experience, if you forgive that kind of mistakes, many users will write documentation with lots of warnings and say ok, these docs ain't right but, it works for me. I guess this is mostly

Re: [Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread David House
On 06/10/06, SevenThunders [EMAIL PROTECTED] wrote: Some of these functions are really annoying to write type declarations for. Maybe I'll get ghci to do it for me and use cut and paste :) Try using type synonyms to bring the beasts to order. -- -David House, [EMAIL PROTECTED]

Re: [Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread SevenThunders
SevenThunders wrote: -- | compute cos (theta / 2) assuming the branch [-pi, pi] halfcos :: Double - Double halfcos cs = sqrt $ (cs + 1)/2 This produces a parse error parse error in doc string: [haddock.exe: reading EOF! on the h of the halfcos :: Double - Double line

Re: [Haskell-cafe] Haddock Parse Errors

2006-10-06 Thread SevenThunders
David House wrote: On 06/10/06, SevenThunders [EMAIL PROTECTED] wrote: Some of these functions are really annoying to write type declarations for. Maybe I'll get ghci to do it for me and use cut and paste :) Try using type synonyms to bring the beasts to order. -- -David House,

Re: [Haskell-cafe] Error building Edison 1.2.0.1

2006-10-06 Thread Lyle Kopnicky
Robert Dockins wrote: On Thursday 05 October 2006 16:51, Lyle Kopnicky wrote: Robert Dockins wrote: mtl is the Monad Transformer Library. It's a part of the standard libraries in 6.4.x. There's been a good deal of chatter recently about reducing the set of libraries