Skip to content

Instantly share code, notes, and snippets.

ev <- performEvent $ ffor pb $ \_ -> liftIO $ do
p <- getFilesDir
case p of
Nothing -> pure Nothing
Just p' -> do
writeFile (p' <> "/" <> "somedata.txt") "Hello, world!"
content <- deepseq <$> readFile (p' <> "/" <> "somedata.txt")
pure (Just (p', content))
{nix-thunk}: self: super: let
# Customize the Botan2 build to be minimal and to compile successfully when
# the host platform is Android.
extraConfigureFlags = { stdenv, botan2 }:
(botan2.extraConfigureFlags or "") + (
builtins.concatStringsSep " " ([
# enable debug symbols and disables optimizations.
"--debug-mode"
src/Tahoe/CHK/URIExtension.hs:11:1: error:
Could not find module ‘Control.Applicative.Combinators’
There are files missing in the ‘parser-combinators-1.3.0’ package,
try running 'ghc-pkg check'.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
11 | import Control.Applicative.Combinators (count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Tahoe/CHK/URIExtension.hs:12:1: error:
Could not find module ‘Control.Applicative.Permutations’
cabal-version: 3.0
name: frontend
version: 0.1
build-type: Simple
library
default-language: Haskell2010
default-extensions: OverloadedStrings
hs-source-dirs: src
-- XXX This requires a newer version of cabal than we have.
extensionFromFields :: [(B.ByteString, B.ByteString)] -> Either String URIExtension
extensionFromFields fields = do
let
fieldMap = M.fromList fields
lookup' :: B.ByteString -> Either String B.ByteString
lookup' k = maybe (Left $ "URI extension field missing: " <> k) pure (M.lookup k fieldMap)
uriExtCodecName <- lookup' "codec_name"
uriExtCodecParams <- lookup' "codec_params" >>= parse "codec_params"
uriExtTailCodecParams <- lookup' "tail_codec_params" >>= parse "tail_codec_params"
chk.hs on  packaging-stuff [$✘»!+?] via λ 8.10.7 via ❄️ impure (ghc-shell-for-packages-0)
❯ cat cabal.project
package *
coverage: True
library-coverage: True
chk.hs on  packaging-stuff [$✘»!+?] via λ 8.10.7 via ❄️ impure (ghc-shell-for-packages-0)
❯ ls -l tahoe-chk.cabal
-rw-r--r-- 1 exarkun users 2918 Feb 1 14:56 tahoe-chk.cabal
Processing ./dist/fixtures-4.0.1.tar.gz
Added fixtures from file:///build/jysksrginz4bgrq6yp8ymizvx0sfk7fa-source/dist/fixtures-4.0.1.tar.gz (from tahoe-lafs==0.0.0) to build tracker '/build/pip-build-tracker-n5bhhvei'
Created temporary directory: /build/pip-modern-metadata-3vpfnmpi
Running command Preparing metadata (pyproject.toml)
Preparing metadata (pyproject.toml) ... done
ERROR: Exception:
Traceback (most recent call last):
File "/nix/store/0vixrqsg7j2m1hjyd2m7j7k58bcd8bqi-python3.10-pip-22.2.2/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/nix/store/0vixrqsg7j2m1hjyd2m7j7k58bcd8bqi-python3.10-pip-22.2.2/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
decode :: IO (Either DecodeError [B.ByteString])
decode = do
-- Allocate enough memory to store pointers to all of the output data
allocaBytes 16 $ \decodedBlocks -> do
pure $ Right []
Traceback (most recent call last):
File "requests/compat.py", line 11, in <module>
ModuleNotFoundError: No module named 'chardet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tahoe.py", line 19, in <module>
File "PyInstaller/loader/pyimod02_importers.py", line 499, in exec_module
File "allmydata/scripts/runner.py", line 24, in <module>
Dec 14 13:29:07 magnon systemd-coredump[1230986]: Process 5195 (tmux: server) of user 1000 dumped core.
Module linux-vdso.so.1 with build-id e2e7fb46e51a2df6edec471dffa464037f996943
Module ld-linux-x86-64.so.2 with build-id 213f262224f28d6940b6ba86c401a95366d8b1cb
Module libc.so.6 with build-id ec0a8714febcfb9e698b66a208157dcf86d98aaf
Module libresolv.so.2 with build-id 95393faac0b3660846c95f954428dfedd40fde1d
Module libm.so.6 with build-id 347389bea17a423235b455946e6b7a25a73a51de
Module libevent_core-2.1.so.7 without build-id.
Module libncursesw.so.6 without build-id.