Skip to content

Instantly share code, notes, and snippets.

View pikeas's full-sized avatar

Aris Pikeas pikeas

  • San Francisco, CA
View GitHub Profile
http://cheatsheet.codeslower.com/CheatSheet.pdf
https://wiki.haskell.org/Learn_Haskell_in_10_minutes
https://github.com/fpinscala/fpinscala/wiki/A-brief-introduction-to-Haskell,-and-why-it-matters
https://github.com/bitemyapp/learnhaskell
http://en.wikibooks.org/wiki/Haskell
http://dev.stephendiehl.com/hask/
http://book.realworldhaskell.org/read/
https://www.reddit.com/r/haskell/comments/332s1k/what_haskell_web_framework_do_you_use_and_why/
insert :: LogMessage -> MessageTree -> MessageTree
insert msg@LogMessage{} Leaf = Node Leaf msg Leaf
insert msg1@(LogMessage _ ts1 _) (Node left msg2@(LogMessage _ ts2 _) right) = case ts1 < ts2 of
True -> Node (insert msg1 left) msg2 right
False -> Node left msg2 (insert msg1 right)
insert _ tree@Node{} = tree
Downloading haskell-src-exts-1.16.0.1...
Configuring haskell-src-exts-1.16.0.1...
cabal: The program 'happy' version >=1.17 is required but it could not be
found.
Failed to install haskell-src-exts-1.16.0.1
cabal: Error: some packages failed to install:
haskell-src-exts-1.16.0.1 failed during the configure step. The exception was:
ExitFailure 1
hlint-1.9.20 depends on haskell-src-exts-1.16.0.1 which failed to install.
root@c3019c994eb5:/app# cabal install hlint
Resolving dependencies...
Configuring haskell-src-exts-1.16.0.1...
Building haskell-src-exts-1.16.0.1...
Preprocessing library haskell-src-exts-1.16.0.1...
src/Language/Haskell/Exts.hs:52:8:
Could not find module ‘Language.Preprocessor.Unlit’
There are files missing in the ‘cpphs-1.19@cpphs_1rSlWgkTK0KELGZZIdxa8W’ package,
try running 'ghc-pkg check'.
FROM pikeas/base:20150427
MAINTAINER Aris Pikeas <[email protected]>
RUN \
apt-get update && \
apt-get install -y \
cabal-install-1.22=1.22.2.0-1~vivid \
ghc-7.10.1=7.10.1-9~vivid && \
apt-get clean && rm -rf /var/lib/{apt,dpkg} /tmp/* /var/tmp/*
LOGGING_CONFIG = None
LOGGING = {
'version': 1,
'formatters': {
'long': {
'format': "%(asctime)s %(levelname)-8s %(module)s: %(message)s",
},
},
'handlers': {
'stderr': {
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "us-east-1"
}
variable "access_key" {}
variable "secret_key" {}
aws_route_table.public: Creating...
route.#: "" => "1"
route.648222489.cidr_block: "" => "0.0.0.0/0"
route.648222489.gateway_id: "" => "igw-fdfcbd98"
route.648222489.instance_id: "" => ""
route.648222489.network_interface_id: "" => ""
route.648222489.vpc_peering_connection_id: "" => ""
tags.#: "" => "1"
tags.Name: "" => "emp2-public"
vpc_id: "" => "vpc-b5171dd0"
{
"variable": {
"region": {
"default": "us-east-1"
},
"key_name": {},
"vpc_cidr": {
"default": "11.0.0.0/16"
},
"zones": {
\newcommand*{\cvtinyentry}[2]{
\vspace{-2.0mm}
\setlength\tabcolsep{0pt}
\setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{\textwidth - 4.5cm} R{4.5cm}}
\entrytitlestyle{#1} & \entrylocationstyle{#2}
\end{tabular*}
% right here, this new line present = small gap, not present = big gap