Skip to content

Instantly share code, notes, and snippets.

View ocharles's full-sized avatar
🥳

Ollie Charles ocharles

🥳
View GitHub Profile
@ocharles
ocharles / ConduitSnippet.hs
Created June 20, 2012 09:56
Using http-conduit to merely print the response is cumbersome.
{-# LANGUAGE OverloadedStrings #-}
import Data.CaseInsensitive (original)
import Data.Conduit (($$), yield)
import Data.Conduit.Binary (sinkHandle)
import Network.HTTP.Conduit
import Network.HTTP.Types
import System.IO (stdout)
import qualified Data.ByteString.Char8 as S
* Schema
*** TODO Decide how we're going to handle voting/merging
My idea is to allow voting on branches (which can be marked as
open/closed). The discussion happens on each commits, and the voting page
will give a unified view onto all these discussions (which means basically
displaying `git log master...HEAD`). Users appear to vote on a branch, but
they are actually voting on the HEAD commit. This prevents people gaming the
system by waiting for enough yes votes, then inserting a last-minute commit
that hasn't really been peer-reviewed. An editor puts a branch into voting
mode by "publishing" it. They may want to create many commits (allowing for