~/.sbt//plugins/plugins.sbt
addSbtPlugin("net.ceedubs" %% "sbt-ctags" % "0.1.0")
~/.ctags
data Test = | |
Test { | |
_id :: Text | |
, _data :: Text | |
} deriving (Show, Eq) | |
makeLenses ''Test | |
z :: Test -> Text | |
z a = |
CREATE TABLE test ( | |
id SERIAL PRIMARY KEY, | |
test TEXT, | |
status CHARACTER VARYING (20) DEFAULT 'queued' | |
); | |
CREATE OR REPLACE RULE "new_test" AS | |
ON INSERT TO test | |
DO NOTIFY "new_test"; |
## case-insensitive (uppercase from lowercase) completion | |
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
## case-insensitive (all) completion | |
#zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' | |
## case-insensitive,partial-word and then substring completion | |
#zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' |
case class TestingTemporaries(buffer: java.util.concurrent.ConcurrentLinkedQueue[LocalPath]) | |
object TestingTemporaries { | |
val registered: java.util.concurrent.atomic.AtomicReference[TestingTemporaries] = | |
new java.util.concurrent.atomic.AtomicReference[TestingTemporaries] | |
def localPath: RIO[LocalPath] = ResultT.io { | |
if (registered.compareAndSet(null, TestingTemporaries(new java.util.concurrent.ConcurrentLinkedQueue))) | |
Runtime.getRuntime.addShutdownHook(new Thread(new Runnable { |
Version
#if MIN_VERSION_process(1,2,0)
#if MIN_VERSION_base(4,7,0)
Host os
#if defined(darwin_HOST_OS)
#if defined(linux_HOST_OS)
lookupEnv :: IO (Maybe String) | |
lookupEnvT :: MaybeT IO String | |
foo :: IO (Maybe (String, String)) | |
foo = do | |
a <- lookupEnv "yay" | |
b <- lookupEnv "yay" | |
pure $ do | |
aa <- a |
Note: The extra environment variables are only required during the build/install phase.
$ wget https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-x86_64-deb8-linux.tar.xz
$ tar ghc-8.0.1-x86_64-deb8-linux.tar.xz
$ cd ghc-8.0.1
$ export CONF_CC_OPTS_STAGE2=-fno-PIE
$ export CONF_GCC_LINKER_OPTS_STAGE2=-no-pie
#!/bin/sh -eu | |
TEMPLATE_DIR=${TEMPLATE_DIR:-/tmp} | |
: ${ROOT:=/etc/config} | |
: ${ENV:=$(cat /etc/config/env)} | |
: ${REGION:=$(cat /etc/config/region)} | |
: ${SUBNET:=$(cat /etc/config/subnet)} | |
: ${PREFIX:?"s3 location"} |
I hereby claim:
To claim this, I am signing this object: