Browse files

Better markdown. Signature/example/usage.

  • Loading branch information...
1 parent 87b0b76 commit af616692d49b38e21ae5d79f51354c828b74a7b4 @finnsson committed Oct 12, 2009
Showing with 20 additions and 0 deletions.
  1. +20 −0 README.markdown
View
20 README.markdown
@@ -4,6 +4,16 @@ Haskell-module to automagically generate repetetive code when writing HUnit-test
## testGroupGenerator
+### signature
+
+ testGroupGenerator :: ExpQ
+
+### usage
+
+ myTestGroup = $(testGroupGenerator)
+
+### example
+
-- file SomeModule.hs
fooTestGroup = $(testGroupGenerator)
main = defaultMain [fooTestGroup]
@@ -20,6 +30,16 @@ is the same as
## defaultMainGenerator
+### signature
+
+ defaultMainGenerator :: ExpQ
+
+### usage
+
+ main = $(defaultMainGenerator)
+
+### example
+
{-# OPTIONS_GHC -fglasgow-exts -XTemplateHaskell #-}
module MyModuleTest where
import Test.HUnit

0 comments on commit af61669

Please sign in to comment.