[Haskell-beginners] Text.Xhtml.Table problems, with a very simple table

David McBride dmcbride at neondsl.com
Mon Jun 20 21:04:05 CEST 2011


I think you have it backwards.  <-> is above and </> is beside.  Yeah,
I would have messed up too, bad choice by the library writer.

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.

On Mon, Jun 20, 2011 at 2:41 PM, Tom Murphy <amindfv at gmail.com> wrote:
> Hi All,
>
> I'm trying to create a table like this:
>
>   ----------
>   | a1 |   |
>   |----|  b  |
>   |  a2 |   |
>   ----------
>
> My code is this:
>
> triTable a1 a2 b = table << ((a1
>                              </> a2) <-> (b))
>
>
> But it's mashing elements together.
> What am I doing wrong??
>
> Thanks for your time,
> Tom
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



More information about the Beginners mailing list