Skip to content

Instantly share code, notes, and snippets.

View runeksvendsen's full-sized avatar

Rune K. Svendsen runeksvendsen

View GitHub Profile
➜ core git:(master) ✗ /Users/rune/Library/Application\ Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.4.0-darwin-8.10.4 --debug .
haskell-language-server version: 1.4.0.0 (GHC: 8.10.4) (PATH: /Users/rune/Library/Application Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.4.0-darwin-8.10.4) (GIT hash: 253547816ee216c53ee7dacc0ad3cac43e863d30)
ghcide setup tester in /Users/rune/Obsidian/iohk/code/os-voltaire-fork/cardano-wallet/lib/core.
Report bugs at https://github.com/haskell/haskell-language-server/issues
Step 1/4: Finding files to test in /Users/rune/Obsidian/iohk/code/os-voltaire-fork/cardano-wallet/lib/core
Found 162 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
[130] rsvendsen@build-ny-linux-0> nix-build --show-trace release.nix -A x86_64-linux 2>&1 |tee build-x86_64-linux.log
[130] rsvendsen@build-ny-linux-0> rm build-x86_64-linux.log ~/code/reflex-platform
rsvendsen@build-ny-linux-0> nix-build --show-trace release.nix -A x86_64-linux 2>&1 |tee build-x86_64-linux.log
^[these derivations will be built:
/nix/store/3ksh4dc65ha2j94zvcl9n4zan7ydll74-old-locale-1.0.0.7.drv
/nix/store/8gx78glk7yyz95iw246bj9lracw92zhi-regex-base-0.94.0.0.drv
/nix/store/7asznnayvk0hsljwmgjrq5iy3r8kp3qb-regex-posix-0.96.0.0.drv
/nix/store/s95ywm2840i831smwc8l3k4wa2s4cgac-random-1.1.drv
/nix/store/wgvlgya9b5865ffw3gknprixfr735fhf-xml-1.3.14.drv
/nix/store/008qxpcz58969s2s1h061ahkkcirhc53-test-framework-0.8.2.0.drv
[rsvendsen@build-ny-linux-0:~/code/reflex-platform]$ nix-build --show-trace release.nix -A x86_64-linux 2>&1 |tee build-x86_64-linux.log
these derivations will be built:
/nix/store/3ksh4dc65ha2j94zvcl9n4zan7ydll74-old-locale-1.0.0.7.drv
/nix/store/qhpj08sjyffk1nz00k33n5mcyyfrpgd9-colour-2.3.5.drv
/nix/store/llzp3crrm7sv1k9vqbz911h8rdy5a3c8-ansi-terminal-0.10.3.drv
/nix/store/6dracv7lyzrldscnrdg58vikwapkcvbs-ansi-wl-pprint-0.6.9.drv
/nix/store/8gx78glk7yyz95iw246bj9lracw92zhi-regex-base-0.94.0.0.drv
/nix/store/7asznnayvk0hsljwmgjrq5iy3r8kp3qb-regex-posix-0.96.0.0.drv
/nix/store/ac7w89p88yw3kdib9z9x6gdcbzn5arsj-hostname-1.0.drv
/nix/store/s95ywm2840i831smwc8l3k4wa2s4cgac-random-1.1.drv
[client] run command: "/Users/rune/Library/Application Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.2.0-darwin-8.10.4 --lsp -d"
[client] debug command: "/Users/rune/Library/Application Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.2.0-darwin-8.10.4 --lsp -d"
[client] server cwd: undefined
haskell-language-server version: 1.2.0.0 (GHC: 8.10.4) (PATH: /Users/rune/Library/Application Support/Code/User/globalStorage/haskell.haskell/haskell-language-server-1.2.0-darwin-8.10.4) (GIT hash: be2071e985cb417f984ab00a1aad76dee02d6d0b)
Starting (haskell-language-server)LSP server...
with arguments: GhcideArguments {argsCommand = LSP, argsCwd = Nothing, argsShakeProfiling = Nothing, argsTesting = False, argsExamplePlugin = False, argsDebugOn = True, argsLogFile = Nothing, argsThreads = 0, argsProjectGhcVersion = False}
with plugins: [PluginId "pragmas",PluginId "floskell",PluginId "fourmolu",PluginId "tactics",PluginId "ormolu",PluginId "stylish-haskell",PluginI
{
"nodes": [
{
"name": "Mme.Hucheloup",
"group": 8,
"idx": 76
},
{
"name": "Brujon",
"group": 4,
{
"nodes": [
{
"name": "Mme.Hucheloup",
"group": 8,
"index": 76
},
{
"name": "Brujon",
"group": 4,
This file has been truncated, but you can view the full file.
runesvend@build:~$ sudo docker run -it runeks86/crypto-liquidity-db-build-cache:0.2.1 /bin/bash
root@354abf04f295:/# sed -i 's/a089bfe9d449afbc1907ded5223bba23a5de9e8a/45bfb65d16a635fadb4097cdb8f3ec9281784083/' stack.yaml
root@354abf04f295:/# stack build --test --no-run-tests --verbose
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0
2021-03-07 12:22:43.838254: [debug] Checking for project config at: /stack.yaml
2021-03-07 12:22:43.838535: [debug] Loading project config file stack.yaml
2021-03-07 12:22:50.536963: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2021-03-06 12:22:50.536931752 UTC]
2021-03-07 12:22:50.537375: [debug] Using package location completions from a lock file
2021-03-07 12:22:50.540435: [debug] Loaded snapshot from Pantry database.
2021-03-07 12:22:50.665136: [debug] RawSnapshotLayer {rslParent = RSLCompiler (WCGhc (mkVersion [8,6,5])), rslCompiler = Nothing, rslLocations =
@runeksvendsen
runeksvendsen / build.sh
Created November 30, 2020 08:43 — forked from angerman/build.sh
Cross compiling ws-tunnel
# prefetch wstunnel's master for nix, and store the result in wstunnel.json
nix-prefetch-git https://github.com/erebe/wstunnel > wstunnel.json
# and build the wstunnel-tarball with nix, using the haskell.nix infra structure as above (see default.nix)
nix build \
-f default.nix \
rpi64-musl.wstunnel-tarball \
-o rpi64-musl-wstunnel-tarball \
--arg wstunnel-json ./ws-tunnel.json
import qualified Control.Concurrent.Async as Async
import qualified System.Timeout as Timeout
import qualified Control.Concurrent.STM as STM
import qualified Debug.Trace as Debug
main :: IO ()
main = do
-- 'stateTvar' is some global state that I would like to update
-- from within an STM transaction using a potentially expensive computation
$ stack repl bellman-ford:test:bellman-ford-test --verbose
Version 2.3.3, Git revision cb44d51bed48b723a5deb08c3348c0b3ccfc437e x86_64 hpack-0.33.0
2020-09-01 15:55:43.894164: [debug] Checking for project config at: /Users/runesvendsen/tmp/bellman-ford/stack.yaml
2020-09-01 15:55:43.894562: [debug] Loading project config file stack.yaml
2020-09-01 15:55:43.898496: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2020-08-31 13:55:43.898459 UTC]
2020-09-01 15:55:43.898912: [debug] Using package location completions from a lock file
2020-09-01 15:55:43.901332: [debug] Loaded snapshot from Pantry database.
2020-09-01 15:55:44.058812: [debug] RawSnapshotLayer {rslParent = RSLCompiler (WCGhc (mkVersion [8,6,5])), rslCompiler = Nothing, rslLocations = [RPLIHackage ALUT-2.4.0.3@sha256:ab8c2af4c13bc04c7f0f71433ca396664a4c01873f68180983718c8286d8ee05,4118 (Just (TreeKey c9968ebed74fd3956ec7fb67d68e23266b52f55b2d53745defeae20fbcba5579,1562)),RPLIHacka