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:
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
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
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
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
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]
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
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,
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