From 6fdb2b73b6bacb24c54dfb2e6291d23971548cb0 Mon Sep 17 00:00:00 2001 From: Greg Pfeil Date: Sat, 27 Jan 2024 11:43:15 -0700 Subject: [PATCH] Fix broken haddock for `concat-inline` --- inline/src/ConCat/Inline/SampleMethods.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inline/src/ConCat/Inline/SampleMethods.hs b/inline/src/ConCat/Inline/SampleMethods.hs index d249cea45..1465ae6f5 100644 --- a/inline/src/ConCat/Inline/SampleMethods.hs +++ b/inline/src/ConCat/Inline/SampleMethods.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} {-# OPTIONS_GHC -Wall #-} -- {-# OPTIONS_GHC -Wno-unused-imports #-} -- TEMP @@ -10,7 +11,10 @@ -- {-# OPTIONS_GHC -ddump-rule-rewrites #-} -- {-# OPTIONS_GHC -ddump-rules #-} +-- Haddock throws an exception if this plugin is enabled here. +#ifdef D__HADDOCK_VERSION__ {-# OPTIONS_GHC -fplugin=ConCat.Inline.Plugin #-} +#endif module ConCat.Inline.SampleMethods where