Re: [Haskell-cafe] problems building hpodder

2008-04-09 Thread Duncan Coutts

On Tue, 2008-04-08 at 15:43 -0500, John Goerzen wrote:
> On Tue April 8 2008 3:21:34 pm Karl Hasselström wrote:
> 
> > http://www.haskell.org/haskellwiki/Package_versioning_policy seems to
> > have something relevant to say. build-depends: HaXml >= 1.13.3 && <
> > 1.14 ought to do the trick, since any changes in the published
> > interface are supposed to be accompanied by a version bump in one of
> > the first two numbers.
> 
> That syntax didn't work under testing, but HaXml >= 1.13.2, HaXml < 1.19 did 
> the trick.

Really? That's certainly supposed to work. Can you give more details we
can use to reproduce the problem.

Duncan

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread gwern0
On 2008.04.08 15:19:12 -0500, John Goerzen <[EMAIL PROTECTED]> scribbled 1.1K 
characters:
> On Mon April 7 2008 9:31:04 pm [EMAIL PROTECTED] wrote:
> >
> > Well, changing the deps at least would be a good idea.
>
> Right.  I've uploaded a new version of hpodder to hackage that will require
> the correct HaXml versions.

Great.

> > And actually, there is a method - Cabal supports the 'stability:' field,
> > but I don't believe it's enforced by cabal-install or anything.
>
> I think part of the problem is visibility in Hackage.  Unless I'm wrong,
> Hackage always takes you to the release with the highest version number.
> There is no "latest stable version" list and "latest development version"
> list, which would be helpful.  Something akin to, say,
> http://packages.debian.org/hpodder

Yes, that's true. There is no good way of doing in Hackage that doesn't involve 
self-discipline or messing with release schedules. I do have a thought about 
the 'stability:' field, though. Feel free to weigh in at 
.

> > (Personally, I'd update it, not just because of issues like this, but
> > because there looked to be a number of changes necessary when I commented
> > all the type sigs, and the longer you wait... &etc.)
>
> The thing is -- I don't want a stable hpodder to jump to a development
> version of HaXml.  The released version is working just fine, and when there
> is a new stable release, I'll update then.  XML parsing is quite central to
> hpodder.
>
> -- John

Sure, but there are costs to not transitioning just as there are costs to so 
doing. I was just saying which cost I found preferable.

--
gwern
JANET Salsa GSA TRANSEC LASINT A/B DJC Al BIOLWPN Xandros


pgpEMIfhjkcHJ.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread Karl Hasselström
On 2008-04-07 18:57:39 -0400, [EMAIL PROTECTED] wrote:

> So almost certainly the issue is that HaXml has updated and changed
> things around in a way that broke Hpodder; not surprising, since
> HaXml-1.19.2 is as recent as 14 January 2008, and Goerzen may simply
> not have updated and discovered the error before he released Hpodder
> in February.

Yes, with an older HaXml it worked beautifully. Thanks!

-- 
Karl Hasselström, [EMAIL PROTECTED]
  www.treskal.com/kalle
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread John Goerzen
On Tue April 8 2008 3:21:34 pm Karl Hasselström wrote:

> http://www.haskell.org/haskellwiki/Package_versioning_policy seems to
> have something relevant to say. build-depends: HaXml >= 1.13.3 && <
> 1.14 ought to do the trick, since any changes in the published
> interface are supposed to be accompanied by a version bump in one of
> the first two numbers.

That syntax didn't work under testing, but HaXml >= 1.13.2, HaXml < 1.19 did 
the trick.

-- John
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread Karl Hasselström
On 2008-04-07 20:20:24 -0500, John Goerzen wrote:

> On Monday 07 April 2008 5:57:39 pm [EMAIL PROTECTED] wrote:
>
> > So almost certainly the issue is that HaXml has updated and
> > changed things around in a way that broke Hpodder; not surprising,
> > since HaXml-1.19.2 is as recent as 14 January 2008, and Goerzen
> > may simply not have updated and discovered the error before he
> > released Hpodder in February.
>
> I won't be updating it anytime soon, in fact. 1.19.2 is a
> development version, according to the author, so I will stick with
> 1.13.3 -- the stable, released version. Unfortunately, Hackage has
> no way to indicate stable vs. alpha, I guess. (That would make life
> easier here.) I suppose I ought to also post something on the
> hpodder wiki and update the Cabal build-deps so it gets the right
> HaXml version.

http://www.haskell.org/haskellwiki/Package_versioning_policy seems to
have something relevant to say. build-depends: HaXml >= 1.13.3 && <
1.14 ought to do the trick, since any changes in the published
interface are supposed to be accompanied by a version bump in one of
the first two numbers.

-- 
Karl Hasselström, [EMAIL PROTECTED]
  www.treskal.com/kalle
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-07 Thread John Goerzen
On Monday 07 April 2008 5:57:39 pm [EMAIL PROTECTED] wrote:

> So almost certainly the issue is that HaXml has updated and changed things
> around in a way that broke Hpodder; not surprising, since HaXml-1.19.2 is
> as recent as 14 January 2008, and Goerzen may simply not have updated and
> discovered the error before he released Hpodder in February.

I won't be updating it anytime soon, in fact.  1.19.2 is a development 
version, according to the author, so I will stick with 1.13.3 -- the stable, 
released version.  Unfortunately, Hackage has no way to indicate stable vs. 
alpha, I guess.  (That would make life easier here.)  I suppose I ought to 
also post something on the hpodder wiki and update the Cabal build-deps so 
it gets the right HaXml version.



>
> If the problem is too-recent HaXml, there's an obvious work around. You
> could install HaXml-1.13.3
> 
> and edit the hpodder.cabal file to replace the 'HaXml>=' bit with
> 'HaXml==1.13.3'. That works for me.
>
> --
> gwern
> Etacs FOSS NTIS SUPIR mindwar NATOA SARA niche DNR 3B2


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] problems building hpodder

2008-04-07 Thread gwern0
On 2008.04.07 00:24:10 +0200, Karl Hasselström <[EMAIL PROTECTED]> scribbled 
0.9K characters:
> I'm trying to build hpodder 1.1.2 with ghc 6.8.2. I successfully
> downloaded, built, and installed (the latest versions of) all its
> dependencies, but when building hpodder itself, I get
>
> FeedParser.hs:146:26:
> `Content' is not applied to enough type arguments
> Expected kind `??', but `Content' has kind `* -> *'
> In the type `Content -> Either String String'
> In the type `String -> Content -> Either String String'
> In the type signature for `strof_either':
>   strof_either :: String -> Content -> Either String String
>
> I don't know enough Haskell to even determine what kind of problem
> this is -- wrong version of some dependency? Wrong version of ghc?
> Help appreciated. :-)
>
> ( FWIW, the hackage auto-builder thingie seems to have the exact same
>   problem I have:
> http://hackage.haskell.org/packages/archive/hpodder/1.1.2/logs/failure/ghc-6.8
> )
>
> --
> Karl Hasselström, [EMAIL PROTECTED]

The issue here isn't GHC, but I think it's the former.

If we open up the FeedParser.hs file, we see that the problem is that the type 
being inferred from what the code does clashes with the type gotten from what 
the code says. The issue is this Content type.

A quick search shows that Content isn't defined in FeedParser.hs, and so if we 
comment out imports, we find that Content is coming from Text.XML.HaXml, and is 
documented here: 
.

So almost certainly the issue is that HaXml has updated and changed things 
around in a way that broke Hpodder; not surprising, since HaXml-1.19.2 is as 
recent as 14 January 2008, and Goerzen may simply not have updated and 
discovered the error before he released Hpodder in February.

If the problem is too-recent HaXml, there's an obvious work around. You could 
install HaXml-1.13.3 
 and 
edit the hpodder.cabal file to replace the 'HaXml>=' bit with 'HaXml==1.13.3'. 
That works for me.

--
gwern
Etacs FOSS NTIS SUPIR mindwar NATOA SARA niche DNR 3B2


pgpbCnY42ol9O.pgp
Description: PGP signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] problems building hpodder

2008-04-06 Thread Karl Hasselström
I'm trying to build hpodder 1.1.2 with ghc 6.8.2. I successfully
downloaded, built, and installed (the latest versions of) all its
dependencies, but when building hpodder itself, I get

FeedParser.hs:146:26:
`Content' is not applied to enough type arguments
Expected kind `??', but `Content' has kind `* -> *'
In the type `Content -> Either String String'
In the type `String -> Content -> Either String String'
In the type signature for `strof_either':
  strof_either :: String -> Content -> Either String String

I don't know enough Haskell to even determine what kind of problem
this is -- wrong version of some dependency? Wrong version of ghc?
Help appreciated. :-)

( FWIW, the hackage auto-builder thingie seems to have the exact same
  problem I have:
  http://hackage.haskell.org/packages/archive/hpodder/1.1.2/logs/failure/ghc-6.8
)

-- 
Karl Hasselström, [EMAIL PROTECTED]
  www.treskal.com/kalle
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe