Skip to content

Instantly share code, notes, and snippets.

View DigitalBrains1's full-sized avatar

Peter Lebbing DigitalBrains1

View GitHub Profile
module DocTest where
-- | Problematic doctest example 1
--
-- >>> x = 1
-- >>> :{
-- x
-- :}
-- 1
-- >>> x
#!/usr/bin/env python3
import os
import subprocess
import tempfile
def run(args, cwd):
return subprocess.run(args, cwd=cwd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
def comb_to_string(comb):
ghc, hashable, primitive = comb