Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better markdown. Signature/example/usage.

  • Loading branch information...
commit af616692d49b38e21ae5d79f51354c828b74a7b4 1 parent 87b0b76
@finnsson authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.