Skip to content

Instantly share code, notes, and snippets.

View supki's full-sized avatar
🇦🇲
🤝 🏳️‍🌈

Matvey Aksenov supki

🇦🇲
🤝 🏳️‍🌈
  • Gorgoroth, Mordor
View GitHub Profile
@Fuuzetsu
Fuuzetsu / hackagedocs
Last active December 13, 2022 22:40
Script for generating and uploading missing documentation for your Hackage packages. Now with fixed package links and contents page.
#!/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=$?
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 7, 2024 01:27
A badass list of frontend development resources I collected over time.
@arkeet
arkeet / monadlens.hs
Created December 15, 2012 14:21
Lens operators for monads. This is really awful.
import Control.Lens
import Control.Lens.Classes
import Control.Lens.Internal
import Control.Monad.Reader
import Control.Monad.State
import Data.IORef
-- I'm not sure what "something" is supposed to be.
-- The second argument to x is a total hack.