File: no_explicit_cpp.test

package info (click to toggle)
hlint 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: haskell: 7,035; lisp: 86; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 502 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---------------------------------------------------------------------
RUN tests/NoExplicitCpp.hs -XHaskell2010
FILE tests/NoExplicitCpp.hs
-- We expect C-preprocessing despite `CPP` not being in the
-- enabled extensions implied by the command line. See issue
-- https://github.com/ndmitchell/hlint/issues/1360.
{-# LANGUAGE CPP #-}
#if 1
hlint = __HLINT__
#endif
OUTPUT
tests/NoExplicitCpp.hs:4:1-20: Warning: Avoid restricted extensions
Found:
  {-# LANGUAGE CPP #-}
Note: may break the code

1 hint