Skip to content

Instantly share code, notes, and snippets.

@aardvarrk
Created December 8, 2012 23:27
Show Gist options
  • Select an option

  • Save aardvarrk/4242510 to your computer and use it in GitHub Desktop.

Select an option

Save aardvarrk/4242510 to your computer and use it in GitHub Desktop.
Noise x >>= f = unsafePerformIO $ do
rand <- (randomIO :: IO Bool)
case rand of
True -> error "fuck"
False -> return $ f x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment