[web-devel] Call for comments: Yesod 0.2

James Britt james at neurogami.com
Sat May 22 00:32:42 EDT 2010


Michael Snoyman wrote:
> Hi all,
> 
> I believe my 0.2 branch of Yesod[1] is feature-complete for this 
> release, and it seems to be fairly stable. The documentation on it[2] 
> give a good introduction, and hopefully the haddocks will fill in the gaps.

james at james06:~/data/vendor/yesod$ runhaskell Setup.lhs configure --user
Configuring yesod-0.2.0...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package http-wget-0.6.2 requires transformers-0.1.4.0
package control-monad-attempt-0.3.0 requires transformers-0.1.4.0
package authenticate-0.6.2 requires transformers-0.1.4.0
package yesod-0.2.0 requires transformers-0.2.1.0
package MonadCatchIO-transformers-0.2.2.0 requires transformers-0.2.1.0


$ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1

This on Ubuntu 8.04



Running

  $ runhaskell Setup.lhs build

fails:


[12 of 14] Compiling Yesod.Helpers.Auth ( Yesod/Helpers/Auth.hs, 
dist/build/Yesod/Helpers/Auth.o )

Yesod/Helpers/Auth.hs:187:25:
     Could not deduce (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
                         (GHandler Auth master))
       from the context ()
       arising from a use of `OpenId.getForwardUrl'
                    at Yesod/Helpers/Auth.hs:187:25-57
     Possible fix:
       add (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
              (GHandler Auth master)) to the context of
         the type signature for `getOpenIdForward'
       or add an instance declaration for
          (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
             (GHandler Auth master))
     In the second argument of `($)', namely
         `OpenId.getForwardUrl oid complete'
     In a stmt of a 'do' expression:
         res <- runAttemptT $ OpenId.getForwardUrl oid complete
     In the expression:
         do { testOpenId;
              rr <- getRequest;
              oid <- case getParams rr "openid" of {
                       [x] -> return x
                       _ -> invalidArgs [...] };
              render <- getUrlRender;
              .... }

Yesod/Helpers/Auth.hs:200:25:
     Could not deduce (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
                         (GHandler Auth master))
       from the context (YesodAuth master)
       arising from a use of `OpenId.authenticate'
                    at Yesod/Helpers/Auth.hs:200:25-49
     Possible fix:
       add (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
              (GHandler Auth master)) to the context of
         the type signature for `getOpenIdComplete'
       or add an instance declaration for
          (transformers-0.1.4.0:Control.Monad.Trans.MonadIO
             (GHandler Auth master))
     In the second argument of `($)', namely `OpenId.authenticate gets''
     In a stmt of a 'do' expression:
         res <- runAttemptT $ OpenId.authenticate gets'
     In the expression:
         do { testOpenId;
              rr <- getRequest;
              let gets' = reqGetParams rr;
              res <- runAttemptT $ OpenId.authenticate gets';
              .... }



Suggestions?


Thanks,

James

-- 

Neurogami - Smart application development

http://www.neurogami.com

james at neurogami.com






More information about the web-devel mailing list