Skip to content

Instantly share code, notes, and snippets.

View runeksvendsen's full-sized avatar

Rune K. Svendsen runeksvendsen

View GitHub Profile
[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
1,826,432,060,880 bytes allocated in the heap
118,222,258,088 bytes copied during GC
363,414,264 bytes maximum residency (1426 sample(s))
1,010,952 bytes maximum slop
346 MB total memory in use (0 MB lost due to fragmentation)
Tot time (elapsed) Avg pause Max pause
Gen 0 323664 colls, 0 par 173.824s 176.616s 0.0005s 0.0170s
Gen 1 1426 colls, 0 par 16.013s 16.381s 0.0115s 0.4512s
Starting GHCi with: "stack --color never repl --no-load crypto-orderbook-db:lib crypto-orderbook-db:exe:crypto-orderbook-db crypto-orderbook-db:exe:crypto-orderbook-db-create-tables crypto-orderbook-db:test:crypto-orderbook-db-test"
(Under cwd /Users/runesvendsen/code/crypto-orderbook-db)
-> :set prompt ""
ghci | Boolean > using precompiled package
ghci | NumInstances > using precompiled package
ghci | Only > using precompiled package
ghci | auto-update > using precompiled package
ghci | base-compat > using precompiled package
ghci | StateVar > configure
ghci | base-orphans > using precompiled package
Starting GHCi with: "stack --color never repl --no-load crypto-venues:lib crypto-venues:exe:write-test-data crypto-venues:test:crypto-venues-test"
(Under cwd /Users/runesvendsen/code/crypto-venues)
-> :set prompt ""
ghci | crypto-venues-0.1.0.0: initial-build-steps (lib + exe)
ghci | The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
ghci | Configuring GHCi with the following packages: crypto-venues
ghci | GHCi, version 8.6.5: http://www.haskell.org/ghc/ :? for help
ghci | Loaded GHCi configuration from /Users/runesvendsen/.ghci
ghci | λ> 
ghci | ===ghci_barrier_0.31537543956491887===