2014-02-25 12:51:39 +0000ircbrowse(~chrisdone@unaffiliated/chrisdone)
2014-02-25 12:58:11 +0000ircbrowse(~chrisdone@unaffiliated/chrisdone) ("Leaving")
2014-02-25 12:59:01 +0000ircbrowse(~chrisdone@unaffiliated/chrisdone)
2014-02-25 13:03:57 +0000 <ircbrowse> :-)
2014-02-25 13:05:18 +0000foxnorth(~chriscata@ool-44c705f3.dyn.optonline.net)
2014-02-25 13:14:25 +0000 Tasty test framework | http://documentup.com/feuerbach/tasty | Logs: http://ircbrowse.net/tasty
2014-02-25 13:17:14 +0000 <jdnavarro> great, we have logs now
2014-02-25 13:17:31 +0000 <Feuerbach> yep :)
2014-02-25 13:18:09 +0000 <jdnavarro> I'm working now on xml -> html
2014-02-25 13:18:23 +0000 <jdnavarro> what should be the type of `htmlRenderer`?
2014-02-25 13:18:39 +0000 <jdnavarro> I'm in doubt between `Tag` or `Html`
2014-02-25 13:19:09 +0000 <Feuerbach> Html, I think
2014-02-25 13:19:33 +0000 <jdnavarro> alright
2014-02-25 13:19:43 +0000 <jdnavarro> I was trying that first
2014-02-25 13:20:32 +0000 <jdnavarro> the `appendChild` function doesn't make in `blaze-html`, right?
2014-02-25 13:21:59 +0000 <jdnavarro> https://github.com/ocharles/tasty-ant-xml/blob/master/Test/Tasty/Runners/AntXML.hs#L146
2014-02-25 14:25:17 +0000 <jdnavarro> I'm almost done with an HTML report that I'm not that sure how it matches with bootstrap-tree
2014-02-25 14:25:48 +0000 <jdnavarro> it only remains how to implement `appendChild` with `blaze-html`
2014-02-25 14:26:34 +0000 <jdnavarro> but I can't find in `blaze-html` how to modify HTML
2014-02-25 14:27:09 +0000 <jdnavarro> looks like it's made only for HTML creation...
2014-02-25 14:27:11 +0000 <Feuerbach> can you think of a different way to do it?
2014-02-25 14:27:17 +0000 <Feuerbach> without appendChild?
2014-02-25 14:28:36 +0000jdnavarrois considering it
2014-02-25 14:31:03 +0000 <jdnavarro> I think, without appendChild, I would have to ditch the `Endo` stuff which is nice
2014-02-25 14:31:11 +0000 <jdnavarro> let me think more about it
2014-02-25 14:35:46 +0000 <Feuerbach> you can do it much nicer than Endo :-)
2014-02-25 14:37:07 +0000 <jdnavarro> :-)
2014-02-25 14:38:39 +0000 <jdnavarro> I assumed at first that the `contents` of `blaze-html` wouldn't work but, now looking at the code it might: http://hackage.haskell.org/package/blaze-markup-0.6.0.0/docs/src/Text-Blaze-Internal.html#contents
2014-02-25 14:39:01 +0000 <jdnavarro> I'll use it and check what it spits out
2014-02-25 14:41:55 +0000 <jdnavarro> It won't work, I can't convert `Html` to `Markup`
2014-02-25 14:42:12 +0000 <jdnavarro> I'll try to have everything in markup and render it to HTML only at the end
2014-02-25 14:43:23 +0000 <jdnavarro> that means the htmlRenderer should be Endo Markup
2014-02-25 14:49:19 +0000 <Feuerbach> let's not do it that way
2014-02-25 14:51:22 +0000 <Feuerbach> so you need a monoid to use foldTestTree
2014-02-25 14:51:22 +0000 <Feuerbach> what's the meaning of that monoid?
2014-02-25 14:51:23 +0000 <Feuerbach> it is the result of the whole fold
2014-02-25 14:51:23 +0000 <Feuerbach> our result is, as we agreed above, Html
2014-02-25 14:51:23 +0000 <Feuerbach> which is MarkupM ()
2014-02-25 14:51:24 +0000 <Feuerbach> can you think of a way to turn that into a monoid?
2014-02-25 14:57:26 +0000 <Feuerbach> Html is Markup
2014-02-25 14:57:29 +0000 <Feuerbach> it's a type synonym
2014-02-25 14:57:33 +0000 <Feuerbach> and you don't need Endo
2014-02-25 14:57:57 +0000jdnavarrois checking it now
2014-02-25 14:59:12 +0000 <jdnavarro> Markup is already a monoid...
2014-02-25 14:59:54 +0000 <jdnavarro> http://hackage.haskell.org/package/blaze-markup-0.6.0.0/docs/Text-Blaze-Internal.html#t:MarkupM
2014-02-25 15:00:09 +0000 <Feuerbach> ah, even better
2014-02-25 15:00:24 +0000 <Feuerbach> (if it wasn't, you would simply wrap it in Traversal)
2014-02-25 15:00:59 +0000 <jdnavarro> so I can use it at the end with `foldTestTree` right?
2014-02-25 15:01:54 +0000 <Feuerbach> right
2014-02-25 15:02:37 +0000 <jdnavarro> ok, I'll ditch `Endo` and make htmlRenderer directyly `Markup` and use it as a monoid