happstack-hsp-7.1.1 (latest) build failure

20 views
Skip to first unread message

Andrey Chudnov

unread,
Jan 28, 2013, 9:37:40 PM1/28/13
to ha...@googlegroups.com
Hi,
hsp fails to build on ghc-7.4 for any version < 0.8.0 (see the hackage page for confirmation). Consequently, happstack-hsp-7.1.1 fails to build since it depends on hsp < 0.8.0.

I went for a quick fix -- bumping the dependency version -- but failed. It seems that 0.8.0 has changed the API of (at least) HSP.XMLGenerator: it doesn't define the IsAttrValue class anymore, and IsAttrValue is used by happstack-hsp. Unfortunately, the docs for hsp-0.8.0 are scarce on advice on porting code that uses IsAttrValue, so it isn't obvious how to fix it.

So, I'm wondering if anyone has looked into the problem and figured something out. If so, please, let me know.

Otherwise, I'll try to chase Niklas down and ask for some advice on porting.

Jeremy Shaw

unread,
Jan 29, 2013, 12:33:11 AM1/29/13
to HAppS
Hello,

As you noted. HSP 0.8 contains significant changes to the API. It's
super awesome.. but there is one small patch to hsx2hs that i just
sent which needs to be applied. And then I need to updated
happstack-hsp and a bunch of documentation. The changes are great --
we eliminated two packages entirely, plus a bunch of other code,
switch from String to Text Builder and other great stuff. Fortunately,
these sweeping changes shouldn't break existing code too much.

For the time being, you'll want to stick with HSP 0.7.*. hsp always
fails to build on hackage because the hackage buildbot can not find
the trhsx preprocessor that is installed by the hsx package. (It
installs it to ~/.cabal/bin or /usr/local/bin but does not include
that in the path). However, I used HSP with GHC 7.4 for quite some
time -- so I expect it should work.

What error did you get ?

- jeremy
> --
> You received this message because you are subscribed to the Google Groups
> "HAppS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to happs+un...@googlegroups.com.
> To post to this group, send email to ha...@googlegroups.com.
> Visit this group at http://groups.google.com/group/happs?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Andrey Chudnov

unread,
Jan 29, 2013, 1:18:24 AM1/29/13
to ha...@googlegroups.com
Hi Jeremy,

On 01/29/2013 12:33 AM, Jeremy Shaw wrote:
> switch from String to Text Builder and other great stuff.
That's indeed great stuff. Although, I half-expected hsp to use
something other than String seeing the proliferation of bytestrings,
iteratees and whatnot. Any idea when that's landing on Hackage?
> What error did you get ?
Thanks, I figured it out. I was using cabal-dev and had the error where
the hsp preprocessor couldn't have been found. I solved it when I was
tinkering with 0.8.0, but forgot to check for the older version. Oh well.

Thanks for your reply, though.
Reply all
Reply to author
Forward
0 new messages