Skip to content

Instantly share code, notes, and snippets.

@aherrmann
aherrmann / first_attempt
Created July 18, 2014 19:52
nixops-mediawiki-error
$ nixops deploy --show-trace -d trivial
webserver> creating VirtualBox VM...
webserver> Virtual machine 'nixops-9b06f219-0e9b-11e4-b973-f01faf13e875-webserver' is created and registered.
webserver> UUID: 30de8820-3dcd-4844-92ba-03af85c23dab
webserver> Settings file: '/home/user/VirtualBox VMs/nixops-9b06f219-0e9b-11e4-b973-f01faf13e875-webserver/nixops-9b06f219-0e9b-11e4-b973-f01faf13e875-webserver.vbox'
webserver> creating disk ‘disk1’...
webserver> 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
webserver> Clone hard disk created in format 'VDI'. UUID: 27e971d3-5cb3-418b-b69e-9083ba9971c1
webserver> attaching disk ‘disk1’...
webserver> Waiting for VM "nixops-9b06f219-0e9b-11e4-b973-f01faf13e875-webserver" to power on...
@aherrmann
aherrmann / pnix-shell.sh
Last active August 23, 2020 20:31
Fully persistent Nix shell
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
@aherrmann
aherrmann / capability-mtl.md
Created October 4, 2018 20:31
Comparing the GHC optimizer on MTL vs Capability

Comparing the GHC optimizer on MTL vs Capability

Only considering very simple examples. GHC Core produced with the following alias and passing -O.

alias ghc-core="ghc -ddump-simpl -dsuppress-idinfo \
    -dsuppress-coercions -dsuppress-type-applications \
    -dsuppress-uniques -dsuppress-module-prefixes"
@aherrmann
aherrmann / bazel-hash-test.sh
Created December 7, 2018 09:50
Test Bazel's hash function for hash collisions on artificially inflated set of Stackage package names that only differ by case.
#!/usr/bin/env bash
# This script tests Bazel's builtin hash function to determine if it is
# sufficient to disambiguate Stackage package names that only differ by case
# on a case insensitive file system.
# Fetch the lts-12.4 snapshot and extract the package names into a Bazel readable format.
wget https://raw.githubusercontent.com/fpco/lts-haskell/master/lts-12.4.yaml
yaml2json < lts-12.4.yaml | jq -r '.packages|keys|.[]' > lts-12.4-package-names
@aherrmann
aherrmann / errmsg.txt
Created March 12, 2020 10:57
Could not find module `Bazel.Runfiles'
ERROR: D:/a/1/s/libs-haskell/bazel-runfiles/BUILD.bazel:6:1: HaskellBuildLibrary //libs-haskell/bazel-runfiles:bazel-runfiles failed (Exit 1)
libs-haskell\bazel-runfiles\src\DA\Bazel\Runfiles.hs:13:1: error:
Could not find module `Bazel.Runfiles'
Use -v to see a list of the files searched for.
|
13 | import qualified Bazel.Runfiles
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@aherrmann
aherrmann / errmsg.txt
Created March 12, 2020 10:57
Could not find module `Bazel.Runfiles'
ERROR: D:/a/1/s/libs-haskell/bazel-runfiles/BUILD.bazel:6:1: HaskellBuildLibrary //libs-haskell/bazel-runfiles:bazel-runfiles failed (Exit 1)
libs-haskell\bazel-runfiles\src\DA\Bazel\Runfiles.hs:13:1: error:
Could not find module `Bazel.Runfiles'
Use -v to see a list of the files searched for.
|
13 | import qualified Bazel.Runfiles
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@aherrmann
aherrmann / execlog.txt
Created March 12, 2020 11:06
Found module `Bazel.Runfiles'
This file has been truncated, but you can view the full file.
command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe"
command_args: "cC"
command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip"
command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params"
environment_variables {
name: "JAVA_HOME"
value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current"
}
environment_variables {
name: "PATH"
@aherrmann
aherrmann / execlog.txt
Created March 12, 2020 11:06
Found module `Bazel.Runfiles'
This file has been truncated, but you can view the full file.
command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe"
command_args: "cC"
command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip"
command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params"
environment_variables {
name: "JAVA_HOME"
value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current"
}
environment_variables {
name: "PATH"
@aherrmann
aherrmann / execlog.txt
Created March 12, 2020 11:07
Found module `Bazel.Runfiles'
This file has been truncated, but you can view the full file.
command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe"
command_args: "cC"
command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip"
command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params"
environment_variables {
name: "JAVA_HOME"
value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current"
}
environment_variables {
name: "PATH"
@aherrmann
aherrmann / execlog.txt
Created March 12, 2020 11:07
Found module `Bazel.Runfiles'
This file has been truncated, but you can view the full file.
command_args: "external/bazel_tools/tools/zip/zipper/zipper.exe"
command_args: "cC"
command_args: "bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip"
command_args: "@bazel-out/x64_windows-opt/bin/external/rules_haskell/haskell/ls_modules.zip-0.params"
environment_variables {
name: "JAVA_HOME"
value: "C:\\Users\\VssAdministrator\\dadew\\scoop\\apps\\java-openjdk-8u201\\current"
}
environment_variables {
name: "PATH"