[Haskell-beginners] Text.Xhtml.Table problems, with a very simple table
dmcbride at neondsl.com
Mon Jun 20 21:41:29 CEST 2011
Oh yeah I forgot to mention, there are no tds being generated. I
manually added them to my code and forgot. Change your code to this:
triTable a1 a2 b = table << td a1 `above` td a2 `beside` td b
I assume it doesn't add them automatically because there are
attributes you might want to add to your tds.
On Mon, Jun 20, 2011 at 3:26 PM, Tom Murphy <amindfv at gmail.com> wrote:
> On 6/20/11, David McBride <dmcbride at neondsl.com> wrote:
>> I think you have it backwards. <-> is above and </> is beside.
> No, I think </> is above:
>> triTable a1 a2 b = table << a1 `above` a2 `beside` b
>> seems to work for me, but you can add parenthesis around the a's to
>> make it more clear.
> For some reason, it's not working for me. The input:
> triTable (toHtml $ "1") (toHtml $ "2") (toHtml $ "3")
> results in:
> even when I just set it up as a "let" in GHCi.
More information about the Beginners