Skip to content

Instantly share code, notes, and snippets.

View KholdStare's full-sized avatar

Alexander Kondratskiy KholdStare

View GitHub Profile
@KholdStare
KholdStare / Channel.hs
Last active August 29, 2015 14:01
Conduit Process
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
module Channel (
-- * Fusion across threads
Channel(..),
ChannelSource,
($$>),
(<$$),
) where
@KholdStare
KholdStare / Makefile
Last active May 2, 2017 06:42
Example code from articles on perfect forwarding to async lambdas. Involves moves, async, templates and perfect forwarding.
PROGS=part1 part2
CC=g++-4.7
CFLAGS= -Wall -Werror -O3 -std=c++0x
LIBS= -lpthread
all: $(PROGS)