aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/Threaded.hs
diff options
context:
space:
mode:
Diffstat (limited to 'html-test/src/Threaded.hs')
-rw-r--r--html-test/src/Threaded.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/html-test/src/Threaded.hs b/html-test/src/Threaded.hs
new file mode 100644
index 00000000..7f3073ad
--- /dev/null
+++ b/html-test/src/Threaded.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TemplateHaskell #-}
+
+-- | Ensures haddock built with @-threaded@.
+module Threaded where
+
+import Threaded_TH
+
+-- | @$(forkTH)@ fails at compile time if haddock isn't using the
+-- threaded RTS.
+f = $(forkTH)