Closed alexanderkjeldaas closed 6 years ago
Yes! Please include an example.
Hi, I have now published an introductory blog post containing a simple example and linked to it in the docs. Let me know if this is what you asked for.
I suppose I could add a trivial example to the haddocks, something like
import Test.Tasty (defaultMain)
import Test.Tasty.Golden (goldenVsString)
import Data.ByteString.Lazy.Char8 as LBS8
main :: IO ()
main = defaultMain $ goldenVsString
"2+2" -- test name
"example.txt" -- golden file path
(return . LBS8.pack . show $ 2+2) -- action to produce the result
but I'm not sure this would be helpful.
Thanks for writing the introductory blog post.
+1 for explicitly importing the identifiers.
Released an update that links to the blog post.
The haddock documentation should probably include a minimal, typical example.