Skip to content

Instantly share code, notes, and snippets.

View ExternalReality's full-sized avatar
🥗
On Site

Eric Jones ExternalReality

🥗
On Site
View GitHub Profile
version: 2.1
orbs:
aws-cli: circleci/aws-cli@1.1.0
dynamic-split:
orbs:
aws-cli: circleci/aws-cli@1.1.0
commands:
test:
description: Run test with dynamic splitting algorithm
warnMissing := func(s string) { logger.Warningf("no %s supplied by provider, using host's %s.", s) }
if !haveNameservers {
warnMissing("name servers")
}
if !haveSearchDomains {
warnMissing("search domains")
}
func resolveNetworkInfoAddresses(networkInfoResult params.NetworkInfoResult) params.NetworkInfoResult {
for i, networkInfo := range networkInfoResult.Info {
for j, interfaceAddress := range networkInfo.Addresses {
resolvedAddress, err := manual.HostAddress(interfaceAddress.Address)
if err != nil {
logger.Warningf("The address %q is neither an IP address or a resolvable hostname", interfaceAddress.Address)
logger.Errorf("%s", err.Error())
}
networkInfoResult.Info[i].Addresses[j].Address = resolvedAddress.String()
}
sortdef quality = int
sortdef sell_in = int
sortdef age = int
datasort gilded_rose_item =
| aged_bree
| sulfuras
| backstage_passes
| conjured
| standard
@ExternalReality
ExternalReality / ghc_version_management.md
Last active August 29, 2015 14:27
Using Multiple Versions of GHC

GHC Version Management using GNU Stow

Stack is great tool for managing versions of GHC. Although many of Plowtech's packages work with Stackage contraints, there are still some that don't and there are some yet that build with Stackage but have difficulties with the Stack tool.

Stow is a good tool that allows manual control over managing versions of GHC. GNU Stow is available from both Mac Ports and many popular Linux distrubitions package management repositories.

Lets install two versions of GHC 7.8.4 and 7.10.2

  1. Install Stow.
  2. Make the directory /usr/local/stow/