Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
cabal configure && cabal build && cabal haddock --hyperlink-source \
--html-location='/package/$pkg-$version/docs' \
--contents-location='/package/$pkg'
S=$?
if [ "${S}" -eq "0" ]; then
cd "dist/doc/html"
DDIR="${1}-${2}-docs"
cp -r "${1}" "${DDIR}" && tar -c -v -z --format=ustar -f "${DDIR}.tar.gz" "${DDIR}"
CS=$?
-- https://gist.github.com/pufuwozu/5550437
import Prelude hiding ((.), id)
import Control.Arrow
import Control.Category
import Data.Monoid
{-
class Monoid m where
mappend :: m -> m -> m
mempty :: m
#!/bin/bash -x
# Based on: https://coderwall.com/p/vqp_yw and
# http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python
sudo apt-get install rubygems1.8
cd $@
python -m SimpleHTTPServer