cd $YOURPLACE
cabal list --simple | awk '{print ($1)}' | uniq | time xargs -P20 -n1 cabal get
#!/bin/bash | |
# Options / Usage | |
# put this script in the same directory as your *.cabal file | |
# it will use the first line of "cabal info ." to determine the package name | |
# custom options for "cabal install" | |
CUSTOM_OPTIONS=(--haddock-options='-q aliased') | |
# hackage server to upload to (and to search uploaded versions for) | |
HACKAGESERVER=hackage.haskell.org |
// #include <emmintrin.h> | |
#include <immintrin.h> | |
// #if defined (__SSE4_2__) || defined (__SSE4_1__) | |
// for some reason i can't get anything newer than sse4.2 work with both gcc-clang and clang | |
// #include <smmintrin.h> | |
// #endif | |
#include <memory.h> |
[("GCC extra via C opts", "") | |
,("C compiler command", "gcc") | |
,("C compiler flags", "--target=arm64-apple-darwin ") | |
,("C++ compiler command", "g++") | |
,("C++ compiler flags", "--target=arm64-apple-darwin ") | |
,("C compiler link flags", "") | |
,("C compiler supports -no-pie", "NO") | |
,("Haskell CPP command", "gcc") | |
,("Haskell CPP flags", "-E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs") | |
,("ld command", "ld") |
{-# OPTIONS --type-in-type #-} | |
open import Agda.Builtin.Unit | |
open import Agda.Builtin.Sigma | |
open import Data.Product | |
data Ty : Set where | |
U : Ty | |
Pi : (A : Set) -> (A -> Ty) -> Ty | |
PiInd : Ty -> Ty |
cd $YOURPLACE
cabal list --simple | awk '{print ($1)}' | uniq | time xargs -P20 -n1 cabal get
#! /usr/local/bin/fish | |
if test -n "$HOME" ; | |
set -xg NIX_LINK "$HOME/.nix-profile" | |
# Set the default profile. | |
if not test -L "$NIX_LINK" ; | |
echo "creating $NIX_LINK" >&2 | |
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
/nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK" | |
end |
$ rg -e fromListN -t haskell ./ | |
./network-topic-models-0.2.0.1/RunLDA.hs | |
139: let termCounts = V.fromListN (M.size nodeItems) | |
./network-topic-models-0.2.0.1/RunCI.hs | |
174: let termCounts = V.fromListN (M.size nodeItems) | |
./network-topic-models-0.2.0.1/RunST.hs | |
171: let termCounts = V.fromListN (M.size nodeItems) |
d/dx (x ^ a) == d/dx (a -> x ) | |
we never consider a ^ x === x -> a () | |
log_x(\nu Y -> T) == \mu Z -> log_X T , where Z == log_X Y | |
(translation: every time we see log_X Y , in T, replace taht with Z ) |
module Main where | |
import Data.Word | |
import Data.Int | |
import Foreign.Ptr | |
import Foreign.C.Types | |
main = c_MD5Final `seq` print "yay" |
context: this is a draft for planned edits / cleanups to the current mac build directions
have apple command line tools installed, as well as mactex, and your favorite OS X package manager (which for the rest of these directions we assume is brew)
since we assume we're using brew, install it!