Fix build breakage in Jobs.hs test code
authorIustin Pop <iustin@google.com>
Thu, 6 Dec 2012 08:58:21 +0000 (09:58 +0100)
committerIustin Pop <iustin@google.com>
Thu, 6 Dec 2012 09:15:17 +0000 (10:15 +0100)
commit3516b09a5396972e293919cdcd1a4cabd51c5146
treed1f687f400f64ec41c5daa0cdd0c32e730047ae8
parent7b22f99cdd18290957068a81f0f1bb8f4a1b8746
Fix build breakage in Jobs.hs test code

Commit 3bdbe4b3 (“Jobs.hs: move OpStatus and JobStatus ADTs to
Types.hs”) removed the TemplateHaskell language pragma from
htest/Test/Ganeti/Jobs.hs due to a hlint warning, but that is bad: it
means the testSuite call is no longer interpreted as a splice, so it results in:

  Parse error: naked expression at top level

With newer GHCs. To fix this, we restore the pragma, and add an hlint
ignore.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htest/Test/Ganeti/Jobs.hs