aboutsummaryrefslogtreecommitdiff
path: root/haddock-library
diff options
context:
space:
mode:
authorPhil de Joux <philderbeast@gmail.com>2022-05-02 08:46:38 -0400
committerGitHub <noreply@github.com>2022-05-02 14:46:38 +0200
commite53854655a796579efcaaf1c4321f388910af3d0 (patch)
tree7ce4f2b39ce6b53327353825578574fe60041591 /haddock-library
parent0c5447f74bb53f754e7ac32c1a01d57e138a9fc5 (diff)
Add hlint action .hlint.yaml with ignores & CPP. (#1475)
Diffstat (limited to 'haddock-library')
-rw-r--r--haddock-library/src/CompatPrelude.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/haddock-library/src/CompatPrelude.hs b/haddock-library/src/CompatPrelude.hs
index 60fa94d9..71a99559 100644
--- a/haddock-library/src/CompatPrelude.hs
+++ b/haddock-library/src/CompatPrelude.hs
@@ -1,6 +1,7 @@
{-# LANGUAGE CPP #-}
-#if !MIN_VERSION_base(4,5,0)
+#ifdef __HLINT__
+#elif !MIN_VERSION_base(4,5,0)
# error This module doesn't provide compat-shims for versions prior to base-4.5
#endif