Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two error when installing from hackage #13

Closed
funrep opened this issue May 6, 2014 · 4 comments
Closed

Two error when installing from hackage #13

funrep opened this issue May 6, 2014 · 4 comments

Comments

@funrep
Copy link

funrep commented May 6, 2014

I get errors when installing the latest temporary from hackage.

Distribution/Compat/TempFile.hs:34:32:
    Warning: In the use of `try'
             (imported from System.IO.Error):
             Deprecated: "Please use the new exceptions variant, Control.Exception.try"

System/IO/Temp.hs:59:3:
    Could not deduce (MonadMask m) arising from a use of `bracket'
    from the context (MonadIO m, MonadCatch m)
      bound by the type signature for
                 withTempFile :: (MonadIO m, MonadCatch m) =>
                                 FilePath -> String -> (FilePath -> Handle -> m a) -> m a
      at System/IO/Temp.hs:(58,1)-(62,20)
    Possible fix:
      add (MonadMask m) to the context of
        the type signature for
          withTempFile :: (MonadIO m, MonadCatch m) =>
                          FilePath -> String -> (FilePath -> Handle -> m a) -> m a
    In the expression:
      bracket
        (liftIO (openTempFile tmpDir template))
        (\ (name, handle)
           -> liftIO (hClose handle >> ignoringIOErrors (removeFile name)))
        (uncurry action)
    In an equation for `withTempFile':
        withTempFile tmpDir template action
          = bracket
              (liftIO (openTempFile tmpDir template))
              (\ (name, handle)
                 -> liftIO (hClose handle >> ignoringIOErrors (removeFile name)))
              (uncurry action)

System/IO/Temp.hs:79:3:
    Could not deduce (MonadMask m) arising from a use of `bracket'
    from the context (MonadCatch m, MonadIO m)
      bound by the type signature for
                 withTempDirectory :: (MonadCatch m, MonadIO m) =>
                                      FilePath -> String -> (FilePath -> m a) -> m a
      at System/IO/Temp.hs:(78,1)-(81,58)
    Possible fix:
      add (MonadMask m) to the context of
        the type signature for
          withTempDirectory :: (MonadCatch m, MonadIO m) =>
                               FilePath -> String -> (FilePath -> m a) -> m a
    In the expression:
      bracket
        (liftIO (createTempDirectory targetDir template))
        (liftIO . ignoringIOErrors . removeDirectoryRecursive)
    In an equation for `withTempDirectory':
        withTempDirectory targetDir template
          = bracket
              (liftIO (createTempDirectory targetDir template))
              (liftIO . ignoringIOErrors . removeDirectoryRecursive)
cabal: Error: some packages failed to install:
shellmate-0.1.5 depends on temporary-1.2.0.2 which failed to install.
temporary-1.2.0.2 failed during the building phase. The exception was:
ExitFailure 1
@xich
Copy link
Contributor

xich commented May 6, 2014

Yes, I've already submitted a pull request (#12) for this.

@funrep
Copy link
Author

funrep commented May 6, 2014

Sorry for my ignorance, thanks for getting this fixed.

@hikari-no-yume
Copy link

I have the same issue, it's stopping me installing Haste :(

@batterseapower
Copy link
Owner

Should be fixed in 1.2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants