Skip to content

Instantly share code, notes, and snippets.

View jackoe's full-sized avatar

Jack Wines jackoe

View GitHub Profile
{ modulesPath, pkgs, ... }: {
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
ec2.hvm = true;
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
};
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Lucid
main :: IO ()
main = putStrLn "Hello, Haskell!"
@jackoe
jackoe / release.nix
Created January 14, 2019 07:35
lens infinite loop
let
config = {
packageOverrides = pkgs: rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: {
# for reasons unkown this line causes an infinite loop
lens = haskellPackages.callHackage "lens" "4.16.1"
project =
@jackoe
jackoe / release.nix
Created January 14, 2019 07:35
lens infinite loop
let
config = {
packageOverrides = pkgs: rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: {
# for reasons unkown this line causes an infinite loop
lens = haskellPackages.callHackage "lens" "4.16.1"
project =