This file contains hidden or 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
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
module Realm.Newrelic where | |
import Control.Monad.Trans.Either | |
import Data.Proxy |
This file contains hidden or 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
# usage: | |
# nix-env -f env.nix -i | |
# load-env-example-1 | |
# | |
# If the directory ~/.history/ exists, then the development environment | |
# will use a dedicated shell history. | |
# | |
# Note: this is currently only compatible with nixos-14.11 (nixos-unstable). | |
# |
This file contains hidden or 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
let | |
filterHaskellSource = builtins.filterSource (path: type: | |
type != "unknown" && | |
baseNameOf path != ".git" && | |
baseNameOf path != "result" && | |
baseNameOf path != "dist"); | |
in | |
{ pkgs ? import <nixpkgs> { } | |
, src ? filterHaskellSource ./. | |
}: |
This file contains hidden or 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 | |
set -euf | |
# TODO NIX_GHC=$(type -P ghc) NIX_GHC_DOCDIR=$(dirname $(dirname $(type -P ghc)))/share/doc/ghc/html | |
# if unset: this is for e.g. emse-hdsb | |
main() { | |
pkg=$(dirname $(dirname $NIX_GHC)) | |