From: waynevanson <waynevanson@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: New package: spago-0.16.0 (WIP)
Date: Sat, 24 Oct 2020 03:26:03 +0200 [thread overview]
Message-ID: <20201024012603.8CWL3CV4jm4W9uytcrXLREir1cxzjmP3kMGfmNmOmqc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24723@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 4128 bytes --]
New comment by waynevanson on void-packages repository
https://github.com/void-linux/void-packages/pull/24723#issuecomment-715651518
Comment:
Here is the error I'm getting. It looks like it's in the Spago codebase and even comes with a suggested solution.
[14 of 29] Compiling Spago.GlobalCache
/builddir/spago-0.16.0/src/Spago/GlobalCache.hs:153:3: error:
• Could not deduce (MonadThrow m)
arising from a use of ‘assertDirectory’
from the context: (MonadIO m, HasLogFunc env, MonadReader env m)
bound by the type signature for:
getGlobalCacheDir :: forall (m :: * -> *) env.
(MonadIO m, HasLogFunc env, MonadReader env m) =>
m FilePath.FilePath
at src/Spago/GlobalCache.hs:150:1-90
Possible fix:
add (MonadThrow m) to the context of
the type signature for:
getGlobalCacheDir :: forall (m :: * -> *) env.
(MonadIO m, HasLogFunc env, MonadReader env m) =>
m FilePath.FilePath
• In a stmt of a 'do' block: _ <- assertDirectory globalCache
In the expression:
do globalCache <- liftIO
$ getXdgDirectory XdgCache "spago" <|> pure ".spago-global-cache"
assertDirectory globalCache
return globalCache
In an equation for ‘getGlobalCacheDir’:
getGlobalCacheDir
= do globalCache <- liftIO
$ getXdgDirectory XdgCache "spago" <|> pure ".spago-global-cache"
assertDirectory globalCache
return globalCache
|
153 | assertDirectory globalCache
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Completed 180 action(s).
-- While building package spago-0.15.3 (scroll up to its section to see the error) using:
/builddir/spago-0.16.0/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 build lib:spago exe:spago --ghc-options ""
Process exited with code: ExitFailure 1
```sh
[14 of 29] Compiling Spago.GlobalCache
/builddir/spago-0.16.0/src/Spago/GlobalCache.hs:153:3: error:
• Could not deduce (MonadThrow m)
arising from a use of ‘assertDirectory’
from the context: (MonadIO m, HasLogFunc env, MonadReader env m)
bound by the type signature for:
getGlobalCacheDir :: forall (m :: * -> *) env.
(MonadIO m, HasLogFunc env, MonadReader env m) =>
m FilePath.FilePath
at src/Spago/GlobalCache.hs:150:1-90
Possible fix:
add (MonadThrow m) to the context of
the type signature for:
getGlobalCacheDir :: forall (m :: * -> *) env.
(MonadIO m, HasLogFunc env, MonadReader env m) =>
m FilePath.FilePath
• In a stmt of a 'do' block: _ <- assertDirectory globalCache
In the expression:
do globalCache <- liftIO
$ getXdgDirectory XdgCache "spago" <|> pure ".spago-global-cache"
assertDirectory globalCache
return globalCache
In an equation for ‘getGlobalCacheDir’:
getGlobalCacheDir
= do globalCache <- liftIO
$ getXdgDirectory XdgCache "spago" <|> pure ".spago-global-cache"
assertDirectory globalCache
return globalCache
|
153 | assertDirectory globalCache
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Completed 180 action(s).
-- While building package spago-0.15.3 (scroll up to its section to see the error) using:
/builddir/spago-0.16.0/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-3.0.1.0 build lib:spago exe:spago --ghc-options ""
Process exited with code: ExitFailure 1
```
next prev parent reply other threads:[~2020-10-24 1:26 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 1:06 [PR PATCH] New package: spago-0.16.0 waynevanson
2020-09-07 1:10 ` sgn
2020-09-07 4:00 ` waynevanson
2020-09-07 8:04 ` fosslinux
2020-09-07 8:05 ` [PR REVIEW] " fosslinux
2020-09-07 8:05 ` fosslinux
2020-09-07 23:24 ` waynevanson
2020-09-08 10:49 ` [PR PATCH] [Updated] " waynevanson
2020-09-08 10:57 ` waynevanson
2020-09-08 11:02 ` waynevanson
2020-09-08 11:09 ` ericonr
2020-09-08 11:17 ` [PR PATCH] [Updated] " waynevanson
2020-09-08 11:19 ` waynevanson
2020-09-08 11:41 ` ericonr
2020-09-08 11:42 ` ericonr
2020-09-08 12:08 ` [PR REVIEW] " ahesford
2020-09-08 12:08 ` ahesford
2020-09-08 12:08 ` ahesford
2020-09-08 12:08 ` ahesford
2020-09-08 13:27 ` waynevanson
2020-09-08 13:56 ` ericonr
2020-09-08 16:47 ` Chocimier
2020-09-08 17:19 ` ahesford
2020-09-09 1:29 ` [PR REVIEW] " waynevanson
2020-09-09 1:49 ` waynevanson
2020-09-12 2:26 ` waynevanson
2020-09-12 2:31 ` [PR PATCH] [Updated] " waynevanson
2020-09-12 5:03 ` waynevanson
2020-09-12 11:05 ` fosslinux
2020-09-12 13:47 ` [PR REVIEW] " ahesford
2020-09-12 13:47 ` ahesford
2020-09-12 13:47 ` ahesford
2020-09-12 15:20 ` ericonr
2020-09-13 7:04 ` waynevanson
2020-09-13 7:17 ` waynevanson
2020-09-13 7:58 ` fosslinux
2020-10-22 12:17 ` [PR PATCH] [Updated] " waynevanson
2020-10-22 12:32 ` waynevanson
2020-10-22 20:19 ` New package: spago-0.16.0 (WIP) fosslinux
2020-10-24 1:26 ` waynevanson [this message]
2021-01-18 3:46 ` waynevanson
2021-01-18 3:46 ` waynevanson
2021-03-25 3:55 ` [PR PATCH] [Closed]: [WIP] New package: spago-0.16.0 waynevanson
2021-03-25 3:57 ` waynevanson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201024012603.8CWL3CV4jm4W9uytcrXLREir1cxzjmP3kMGfmNmOmqc@z \
--to=waynevanson@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).