On Fri, Sep 07, 2007 at 08:43:34PM -0700, Justin Bailey wrote:
> Could you put an example of the generated HTML up too?
sure!
http://www.b7j0c.org/content/newspage-sample.html
which is now linked in from the original article
http://www.b7j0c.org/content/haskell-newspage.html
__
On 9/7/07, brad clawsie <[EMAIL PROTECTED]> wrote:
> i recently worked up a little example program i use to generate a
> general news summary page using yahoo web services
Thanks for posting that. Could you put an example of the generated HTML up too?
Justin
__
i recently worked up a little example program i use to generate a
general news summary page using yahoo web services
if you are interested in an example of XHT and Text.XHtml.Strict in
action, you can see it here
http://www.b7j0c.org/content/haskell-newspage.html
On Sat, 2007-09-08 at 12:24 +1000, Stuart Cook wrote:
> On 9/8/07, Ryan Ingram <[EMAIL PROTECTED]> wrote:
> > This does what you want, I think:
> >
> > {-# LANGUAGE ExistentialQuantification #-}
> > module Exist where
> >
> > data Showable = forall a. (Show a) => Showable a
> > instance Show Showab
On 9/8/07, Ryan Ingram <[EMAIL PROTECTED]> wrote:
> This does what you want, I think:
>
> {-# LANGUAGE ExistentialQuantification #-}
> module Exist where
>
> data Showable = forall a. (Show a) => Showable a
> instance Show Showable where
>showsPrec p (Showable a) = showsPrec p a
>show (Show
Bryan O'Sullivan wrote:
> Henning Thielemann wrote:
>
>> I thought it must be possible to define an unboxed array type with
>> Storable elements.
>
> Yes, this just hasn't been done. There would be a few potentially
> tricky corners, of course; Storable instances are not required to be
> fi
Dan Piponi wrote:
> On 9/5/07, Ketil Malde <[EMAIL PROTECTED]> wrote:
>> On Wed, 2007-09-05 at 08:19 +0100, Simon Peyton-Jones wrote:
>> Error message from GHCi:
>> test/error.hs:2:8:
>> No instance for (Num String)
>> arising from use of `+' at test/error.hs:2:8-17
>>
Dan Piponi wrote:
> On 9/5/07, Ketil Malde <[EMAIL PROTECTED]> wrote:
>> On Wed, 2007-09-05 at 08:19 +0100, Simon Peyton-Jones wrote:
>> Error message from GHCi:
>> test/error.hs:2:8:
>> No instance for (Num String)
>> arising from use of `+' at test/error.hs:2:8-17
>>
On Sep 7, 2007, at 14:37 , Albert Y. C. Lai wrote:
Brent Yorgey wrote:
Then one day he met someone else who said she was also a race car
driver, but her car was different -- she called it a "Haskar". It
had a top speed of 400 miles per hour, no steering wheel (you just
lean whichever way
This does what you want, I think:
{-# LANGUAGE ExistentialQuantification #-}
module Exist where
data Showable = forall a. (Show a) => Showable a
instance Show Showable where
showsPrec p (Showable a) = showsPrec p a
show (Showable a) = show a
-- You have to use the default implementation
Brent Yorgey wrote:
Then one day he met someone else who said she was also a race car
driver, but her car was different -- she called it a "Haskar". It had a
top speed of 400 miles per hour, no steering wheel (you just lean
whichever way you want to go, she said),
I wish I could just lean le
Sorry, forgot to cc list
> I think this is called taking a good thing too far, but cool too:
>
>
> f1 u = u + 1
> f2 u v = u + v
> f3 u v w = u + v + w
>
> -- functions renamed for consistency)
> zipWith1 = map
> zipWith2 = zipWith
>
> -- and hey presto!
> us1 = 3 : zipWith1 f1 us1
> us2 = 2 : 3 :
>From what I can see of your program, it would greatly benefit from
using Data.ByteString, is there an obvious reason not to use it ?
(Some list operations are too expensive with ByteString but for most
string processing it's perfectly fine and much faster than String).
--
Jedaï
_
Hi Chris,
I should also point out that the wiki has a lot of really useful links:
http://www.haskell.org/haskellwiki/Learning_Haskell
Good luck,
Wouter
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your com
Given that GHC 6.8 is just around the corner and, given how it has
re-organised the libraries so that the dependencies in many (most/all)
the packages in the hackage DB are now not correct.
Is there a plan of how to get hackage DB up to speed with GHC 6.8 ?
Cheers
Neil
__
Matthew Brecknell brecknell.org> writes:
>
> Levi Stephen:
> > I have a data type:
> >
> > > data T a = forall b. (Show b) => T b a
> >
> > and I want to use/extract 'b' from this.
>
> You can't. (Well, I believe you can if you have prior knowledge of the
> actual type of the existentially wr
G'day all.
Quoting Chung-chieh Shan <[EMAIL PROTECTED]>:
Yes. You can even do this portably, using nothing "unsafe", with Dylan
Thurston's technique:
That paper gives you a choice between inefficient and leaky. I think I'll
take unsafeCoerce#. :-)
Cheers,
Andrew Bromage
___
17 matches
Mail list logo