echo -e '*1\r\n$4\r\nPING\r\n' | nc redis.host.com 6379
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
-- Daft Punk | |
wmdm = ["work it ","make it ","do it ","makes us "] | |
hbfs = ["harder","better","faster","stronger"] | |
mteha = [("more than ", "ever"), ("hour ", "after")] | |
hwino = [("hour ", "work is"), ("never ", "over")] | |
intro = wmdm ++ hbfs ++ map fst (mteha ++ hwino) ++ map snd (mteha ++ hwino) ++ wmdm ++ hbfs | |
chorus = zipWith (++) wmdm hbfs ++ fmap combine (mteha ++ hwino) | |
chorusalt = zipWith (++) wmdm ("":tail hbfs) ++ fmap combine (mteha ++ hwino) | |
outro = evens (zipWith (++) wmdm hbfs) ++ fmap combine (head mteha:hwino) |
fpco decided to do their own thing instead of contributing to that effort.
Your timeline is way off. The initial announcement for what would become Stackage was posted in 2012, a full three years before the post you linked was authored (and a year before Cabal got sandboxes!). The proposal blog post doesn't even mention diverging from cabal
at all, and the official way to use stackage was through cabal sandboxes. The first public beta of stack
was announced in June 2015, and according to the blog post, FPCo had been working on stack
internally for about a year before that. If these timelines are to be believed, then stack
was six months into internal produ
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
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Protolude | |
import qualified Web.Scotty as Sc | |
import qualified Data.Text as Txt | |
import qualified Network.Wai.Middleware.Gzip as Sc |
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
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |