View ghcid-session.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ] | |
then | |
echo "No arguments supplied" | |
exit 1; | |
fi |
View RandomExample.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- stack --resolver lts-16.8 --install-ghc exec ghci --package "random cryptonite text memory"-} | |
{- ghcid -c "stack RandomExample.hs" -} | |
{-# Language OverloadedStrings, PackageImports, ScopedTypeVariables, TypeApplications #-} | |
module RandomExample where | |
import Prelude | |
import qualified GHC.List as Fold | |
import "cryptonite" Crypto.Random (MonadRandom, drgNew, withDRG, getRandomBytes) |
View Existensial.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- stack --resolver lts-16.8 --install-ghc exec ghci --package "protolude text binary" -} | |
{-# LANGUAGE DeriveGeneric, DuplicateRecordFields, ExistentialQuantification, FlexibleContexts, RankNTypes, ScopedTypeVariables, StandaloneDeriving #-} | |
{- ghcid -c "stack X.hs" -} | |
module Existenial where | |
import Data.Text | |
import Data.Binary | |
import GHC.Generics |
View FSM.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- stack | |
--resolver lts-16.8 | |
--packages "transformers" | |
exec ghci | |
-} | |
{-# Language | |
EmptyDataDeriving | |
, GADTs | |
, GeneralizedNewtypeDeriving |
View ghc info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tag: ghc-8.8.3-release | |
ghc is build with | |
$ ./hadrian/build.stack.sh --flavour=prof --configure -j binary-dist | |
but I'm just pointing to _build/stage1 | |
stack is version 2.3.1 | |
operating system is macos catalina |
View IxMonadT.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- stack script | |
--resolver lts-14.20 | |
-} | |
{-# Language RebindableSyntax | |
, ScopedTypeVariables | |
, FlexibleInstances | |
, NoMonomorphismRestriction | |
, OverloadedStrings | |
, InstanceSigs |
View core-dump.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- stack script | |
--package "base mtl time ghc ghc-paths haskeline containers" | |
--resolver lts-14.20 | |
-} | |
module Main where | |
-- Compiler | |
import GHC | |
import DynFlags |
View .tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set auto-reload of this config | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" | |
# set default tmux bash version ... move to fish? | |
set -g default-shell /usr/local/bin/bash | |
# set colors to 256 | |
set -g default-terminal "screen-256color" # colors! | |
# start with window 1 (instead of 0) |
View updateSite.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack script | |
--compile | |
--copy-bins | |
--resolver lts-14.17 | |
--install-ghc | |
--package turtle | |
--package text | |
--package foldl | |
--package async |
View freshfox_macos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
alias firefox=/Applications/Firefox.app/Contents/MacOS/firefox | |
DIR="${XDG_CACHE_HOME:-$HOME/.cache}" | |
mkdir -p -- "$DIR" | |
TEMP="$(mktemp -d -- "$DIR/firefox-XXXXXX")" | |
trap "rm -rf -- '$TEMP'" INT TERM EXIT | |
firefox -profile "$TEMP" -no-remote "$@" |
NewerOlder