--- Log opened Mon Jun 22 00:00:22 2009
10:02 < agilaz_> hello
10:03 < mightybyte> Hi there
10:03 < agilaz_> when trying to install happs-tutorial i get the following error during the building of happstack.server.helpers
10:03 < agilaz_> Happstack/Server/Helpers.hs:23:22:
10:03 < agilaz_>     Could not deduce (Functor m)
10:03 < agilaz_>       from the context (Methods st, Component st, ToMessage b, Monad m)
10:03 < agilaz_>       arising from a use of `simpleHTTP''
10:03 < agilaz_>                    at Happstack/Server/Helpers.hs:23:22-47
10:03 < agilaz_>     Possible fix:
10:03 < agilaz_>       add (Functor m) to the context of
10:03 < agilaz_>         the type signature for `smartserver''
10:03 < agilaz_>     In the second argument of `($)', namely
10:03 < agilaz_>         `simpleHTTP' f conf handler'
10:03 < agilaz_>     In a stmt of a 'do' expression:
10:03 < agilaz_>         tid <- forkIO $ simpleHTTP' f conf handler
10:03 < agilaz_>     In the second argument of `($)', namely
10:03 < agilaz_>         `do putStrLn . ("starting happs server" ++) =<< time
10:03 < agilaz_>         control <- startSystemState stateProxy
10:04 < agilaz_>             putStrLn . ("happs state started" ++) =<< time
10:04 < agilaz_>         tid <- forkIO $ simpleHTTP' f conf handler
10:04 < agilaz_>         ....'
10:04 < agilaz_> does anybody have any idea of a probable solution?
10:04 < agilaz_> have i installed a wrong version of a dependency?
10:04 < mightybyte> How did you install it?
10:04 < agilaz_> or is there any way to try the possible fix suggested by ghc without abandoning cabal for the rest of the install?
10:04 < agilaz_> sudo cabal install happs-tutorial
10:05 < agilaz_> as suggested on http://tutorial.happstack.com/tutorial/
10:06 < mightybyte> Hmmm, I wonder if this has anything to do with the recent release of 0.3
10:07 < agilaz_> the release of what 0.3?
10:07 < agilaz_> otherwise i'll try removing that dependency and manually installing an older version
10:08 < mightybyte> mae released 0.3 just the other day.  I haven't upgraded yet, so I'm not sure if that might be the issue.
10:08 < mightybyte> What version was installed?
10:11 < agilaz_> happstack? 0.3.2
10:12 < mightybyte> What ghc version are you using?
10:13 < agilaz_> 6.10.2
10:14 < mightybyte> OS?
10:14 < agilaz_> OS X 10.5.6
10:16 < mightybyte> ...trying to duplicate the problem
10:24 < agilaz___> hmm any luck?
10:24 < mightybyte> Yep, I just got the same error.
10:24 < mightybyte> Why don't you submit that as a bug.
10:25 < mightybyte> ll
10:25 < mightybyte> Oops, wrong window
10:28 < mightybyte> Actually, happstack-helpers isn't in the happstack repo, it's a separate project.
10:28 < agilaz___> hmm will do... but first i wanted to find out if it wasn't a pebkac error
10:28 < agilaz___> ah... didn't know that
10:28 < agilaz___> thanks for your help in any case :)
10:28 < mightybyte> Yeah, so don't submit it to happstack
10:29 < agilaz___> i won't.. would you happen to know where i can file a bug to happstack-helpers ?
10:32 < mightybyte> I'm looking, there doesn't seem to be an official place
10:32 < mightybyte> http://hackage.haskell.org/package/happstack-helpers
10:32 < mightybyte> Creighton Hogg is the maintainer
10:34 < agilaz___> hmm allready found that one, but was looking for a bug site.. i'll just mail him then
10:34 < agilaz___> thanks!
10:35 < mightybyte> No problem
10:39 < mightybyte> Oh, it looks like it's already been fixed.
10:39 < mightybyte> Probably just not pushed to hackage yet.
10:40 < mightybyte> Try installing happstack-helpers first like this:
10:40 < mightybyte> darcs get http://patch-tag.com/r/HAppSHelpers/pullrepo HAppSHelpers
10:43 < mightybyte> Yeah, after that command "cabal install happs-tutorial" works.
10:46 < mightybyte> Your bug report to him will still be useful though, because he needs to update hackage with the version bump.
10:59 < navaati> hello
11:00 < navaati> I can't find how to achieve a thing in happs : how can i run an IO action when responding to a request ?
11:41 < gcollins> navaati: ServerPartT wraps IO, you can execute IO actions with "liftIO"
11:44 < navaati> hum, it's simpler than i thought... i don't know enough the monad transformers. Thanks \o
11:44 < gcollins> good tutorial here: http://user.cs.tu-berlin.de/~magr/pub/Transformers.pdf
11:47 < navaati> oh, great, thanks again
14:27 < lpsmith> has anybody ever used happstack to do reverse ajax?
--- Log closed Tue Jun 23 00:00:25 2009