Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497496

Summary: dev-haskell/cgi-3001.1.8.4 - Network/CGI/Monad.hs:123:10: Could not deduce (Functor m) arising from a use of `try' from the context (MonadCGI m, MonadCatchIO m) bound by the type signature for tryCGI :: (MonadCGI m, MonadCatchIO m) => m a -> m (Either ...
Product: Gentoo Linux Reporter: Jason Mours <jason.mours>
Component: [OLD] DevelopmentAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge-info

Description Jason Mours 2014-01-08 05:37:41 UTC
Created attachment 367358 [details]
build.log

dev-haskell/cgi-3001.1.8.4 is failing emerge with the following:

[4 of 8] Compiling Network.CGI.Monad ( Network/CGI/Monad.hs, dist/build/Network/CGI/Monad.o )

Network/CGI/Monad.hs:123:10:
    Could not deduce (Functor m) arising from a use of `try'
    from the context (MonadCGI m, MonadCatchIO m)
      bound by the type signature for
                 tryCGI :: (MonadCGI m, MonadCatchIO m) =>
                           m a -> m (Either SomeException a)
      at Network/CGI/Monad.hs:122:11-75
    Possible fix:
      add (Functor m) to the context of
        the type signature for
          tryCGI :: (MonadCGI m, MonadCatchIO m) =>
                    m a -> m (Either SomeException a)
    In the expression: try
    In an equation for `tryCGI': tryCGI = try

: Posting build.log
Comment 1 Jason Mours 2014-01-08 05:38:02 UTC
Created attachment 367360 [details]
emerge-info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2014-01-11 15:01:11 UTC
(what is odd) the failure is only gentoo-haskell overlay-specific
due to monadcatchio-mtl slight breakage.

Pushed as:
> 11 Jan 2014; Sergei Trofimovich <slyfox@gentoo.org> +cgi-3001.1.8.4-r1.ebuild,
> +files/cgi-3001.1.8.4-mci.patch:
> . Fix build failure against latest monadcatchio-mtl-0.3.1.0 (bug #497496 by
> Jason Mours).

Thank you!