Skip to content

Instantly share code, notes, and snippets.

@dpercy
dpercy / iotest.hs
Created December 19, 2016 06:36
can you atomically update STRef in a multithreaded program?
{-# OPTIONS_GHC -W #-}
{-# LANGUAGE BangPatterns #-}
import Control.Concurrent
import Control.Monad.ST
import Data.IORef
import Data.STRef
{-
@dpercy
dpercy / keybase.md
Created October 21, 2015 03:09
keybase proof

Keybase proof

I hereby claim:

  • I am dpercy on github.
  • I am dpercy (https://keybase.io/dpercy) on keybase.
  • I have a public key whose fingerprint is 04D3 E024 A58B F421 5C2D 0A83 FA0C 07B2 9768 BD04

To claim this, I am signing this object: