git checkout -b <branchname>
git add
git commit -m "description of changes"
``` | |
OCaml compilation pipeline | |
┌────────────────┐ | |
│ │ | |
│ Source code │ |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE PartialTypeSignatures #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeFamilies #-} |
This gist is a fork of the gist from this blog post.
Today we'll be looking into Kmett's | |
[adjunctions](http://hackage.haskell.org/package/adjunctions) library, | |
particularly the meat of the library in Data.Functor.Adjunction. | |
This post is a literate haskell file, which means you can load it right up in | |
ghci and play around with it! Like any good haskell file we need half a dozen | |
language pragmas and imports before we get started. | |
> {-# language DeriveFunctor #-} | |
> {-# language TypeFamilies #-} |
Install pg gem on Snow Leopard for PostgreSQL 9. | |
Run the following commands. | |
sudo port install postgresql90-server -universal | |
gem install pg -- --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config |