Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Text.Xhtml.Table problems, with a very simple table (Tom Murphy)
2. Re: Web frameworks (Manfred Lotz)
3. Re: Text.Xhtml.Table problems, with a very simple table
(David McBride)
4. Re: Text.Xhtml.Table problems, with a very simple table
(Tom Murphy)
5. Re: Text.Xhtml.Table problems, with a very simple table
(Jack Henahan)
6. Re: Text.Xhtml.Table problems, with a very simple table
(David McBride)
7. Re: Text.Xhtml.Table problems, with a very simple table
(Tom Murphy)
8. Unit numeric type pattern (Christopher Howard)
----------------------------------------------------------------------
Message: 1
Date: Mon, 20 Jun 2011 14:41:36 -0400
From: Tom Murphy <[email protected]>
Subject: [Haskell-beginners] Text.Xhtml.Table problems, with a very
simple table
To: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
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
------------------------------
Message: 2
Date: Mon, 20 Jun 2011 20:38:57 +0200
From: Manfred Lotz <[email protected]>
Subject: Re: [Haskell-beginners] Web frameworks
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII
On Fri, 17 Jun 2011 08:30:10 +0200
Manfred Lotz <[email protected]> wrote:
> Hi there,
> There are some web frameworks out there, as snap, yesod, happstack,
> and perhaps even more.
>
> I'd like to get a recommendation which web framework might be easiest
> to get into, and to use for a haskell beginner.
>
>
>
Thanks to all for sharing your opinions.
I didn't get a clear answer but I would say there is no clear answer
available. So perhaps I'll play with all of them.
--
Thanks again,
Manfred
------------------------------
Message: 3
Date: Mon, 20 Jun 2011 15:04:05 -0400
From: David McBride <[email protected]>
Subject: Re: [Haskell-beginners] Text.Xhtml.Table problems, with a
very simple table
To: Tom Murphy <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
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 <[email protected]> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
------------------------------
Message: 4
Date: Mon, 20 Jun 2011 15:26:47 -0400
From: Tom Murphy <[email protected]>
Subject: Re: [Haskell-beginners] Text.Xhtml.Table problems, with a
very simple table
To: David McBride <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 6/20/11, David McBride <[email protected]> wrote:
> I think you have it backwards. <-> is above and </> is beside.
No, I think </> is above:
(http://hackage.haskell.org/packages/archive/xhtml/3000.2.0.1/doc/html/src/Text-XHtml-Table.html#%3C%2F%3E)
>
> 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:
"<table
><tr
>13</tr
><tr
>2</tr
></table
>"
even when I just set it up as a "let" in GHCi.
Thanks,
Tom
------------------------------
Message: 5
Date: Mon, 20 Jun 2011 15:40:03 -0400
From: Jack Henahan <[email protected]>
Subject: Re: [Haskell-beginners] Text.Xhtml.Table problems, with a
very simple table
To: Tom Murphy <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
If I'm reading your diagram correctly (and I'm not sure I am), removing the
parentheses from your triTable definition seems to work for me. Rendered, it
looks liks
1
2 3
I'm not sure if your intention is that the 3 should be centered, but if so,
obviously that doesn't work.
Prelude Text.Html> let triTable a1 a2 b = table << a1 </> a2 <-> b
Prelude Text.Html> triTable (toHtml $ "1") (toHtml $ "2") (toHtml $ "3")
<TR>
<TABLE COLSPAN = "2">
1
</TABLE>
</TR>
<TR>
2
3
</TR>
Is that what you're going for?
On Jun 20, 2011, at 3:26 PM, Tom Murphy wrote:
> On 6/20/11, David McBride <[email protected]> wrote:
>> I think you have it backwards. <-> is above and </> is beside.
>
> No, I think </> is above:
> (http://hackage.haskell.org/packages/archive/xhtml/3000.2.0.1/doc/html/src/Text-XHtml-Table.html#%3C%2F%3E)
>
>>
>> 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:
> "<table
>> <tr
>> 13</tr
>> <tr
>> 2</tr
>> </table
>> "
> even when I just set it up as a "let" in GHCi.
>
>
> Thanks,
> Tom
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 398E692F.gpg
Type: application/x-apple-msg-attachment
Size: 2756 bytes
Desc: not available
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110620/d841ea7e/attachment-0001.bin>
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 881 bytes
Desc: This is a digitally signed message part
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110620/d841ea7e/attachment-0001.pgp>
------------------------------
Message: 6
Date: Mon, 20 Jun 2011 15:41:29 -0400
From: David McBride <[email protected]>
Subject: Re: [Haskell-beginners] Text.Xhtml.Table problems, with a
very simple table
To: Tom Murphy <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
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 <[email protected]> wrote:
> On 6/20/11, David McBride <[email protected]> wrote:
>> I think you have it backwards. ?<-> is above and </> is beside.
>
> No, I think </> is above:
> (http://hackage.haskell.org/packages/archive/xhtml/3000.2.0.1/doc/html/src/Text-XHtml-Table.html#%3C%2F%3E)
>
>>
>> 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:
> "<table
> ? ?><tr
> ? ? ?>13</tr
> ? ? ?><tr
> ? ? ?>2</tr
> ? ? ?></table
> ? ?>"
> even when I just set it up as a "let" in GHCi.
>
>
> Thanks,
> Tom
>
------------------------------
Message: 7
Date: Mon, 20 Jun 2011 16:13:49 -0400
From: Tom Murphy <[email protected]>
Subject: Re: [Haskell-beginners] Text.Xhtml.Table problems, with a
very simple table
To: David McBride <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 6/20/11, David McBride <[email protected]> wrote:
> 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.
>
THIS is what I was missing. Works beautifully now. Thank you!
Tom
------------------------------
Message: 8
Date: Tue, 21 Jun 2011 00:38:09 -0800
From: Christopher Howard <[email protected]>
Subject: [Haskell-beginners] Unit numeric type pattern
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
What is a "unit numeric type pattern", as in the error: "Only unit
numeric type pattern is valid". I can cause this error by mixing numbers
into type definitions. And, therefore, I know how to avoid this error.
But the error indicates that there /is/ such a thing as "valid" "unit
numeric type pattern", and consequently I am quite curious as to what a
such a thing is and what it would look like in code.
--
frigidcode.com
theologia.indicium.us
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 36, Issue 51
*****************************************