From e53854655a796579efcaaf1c4321f388910af3d0 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Mon, 2 May 2022 08:46:38 -0400 Subject: Add hlint action .hlint.yaml with ignores & CPP. (#1475) --- haddock-library/src/CompatPrelude.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'haddock-library') 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 -- cgit v1.2.3