1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00

Add a trace' function to help trace some bugs.

This commit is contained in:
Rob Rix 2015-12-10 15:11:42 -05:00
parent 3e8517a2a3
commit ed87838de6

View File

@ -52,6 +52,9 @@ instance ToMarkup HTML where
toMarkup (Div className children) = classifyMarkup className . div $ mconcat (toMarkup <$> children)
toMarkup (Dt key) = dt $ string key
trace' :: Show a => a -> a
trace' a = traceShow a a
split :: Diff a Info -> String -> String -> IO ByteString
split diff before after = return . renderHtml
. docTypeHtml