Skip to content

Instantly share code, notes, and snippets.

@pacak
pacak / EteeArr.hs
Created July 5, 2012 05:02 — forked from JohnLato/EteeArr.hs
arrow-like functions for enumeratees
{-# LANGUAGE RankNTypes, ScopedTypeVariables, NoMonomorphismRestriction,
TupleSections #-}
-- | A couple arrow-like functions for enumeratees. Consider this example:
--
-- Suppose you have the following
--
-- 1. Consumer :: Iteratee [(Int,Char)] m a
-- 2. Mapper :: Enumeratee Int Char m a
-- 3. Source :: Enumerator Int m a