Skip to content

Instantly share code, notes, and snippets.

@viters
Created May 14, 2017 20:50
Show Gist options
  • Save viters/92fb2077a928e98f82ae29684f0e54bf to your computer and use it in GitHub Desktop.
Save viters/92fb2077a928e98f82ae29684f0e54bf to your computer and use it in GitHub Desktop.
A simple way to test code in haskell
tests = [
(TestCondition :: Bool, "TestDescription" :: String)
]
main :: IO()
main =
mapM_ (putStrLn . snd) (filter (\(x,_) -> x == False) tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment