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 ```