File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ before_cache:
19
19
20
20
matrix :
21
21
include :
22
+ - env : BUILD=hlint CABALVER=1.24 GHCVER=8.0.2
23
+ compiler : " : #GHC 8.0.2"
24
+ addons : {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
22
25
- env : BUILD=stack CABALVER=1.24 GHCVER=8.0.2 STACK_YAML=stack-bench.yaml
23
26
compiler : " : #GHC 8.0.2"
24
27
addons : {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
@@ -40,9 +43,6 @@ matrix:
40
43
- env : BUILD=cabal CABALVER=1.22 GHCVER=7.10.3
41
44
compiler : " : #GHC 7.10.3"
42
45
addons : {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
43
- - env : BUILD=hlint CABALVER=1.24 GHCVER=8.0.2
44
- compiler : " : #GHC 8.0.2"
45
- addons : {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
46
46
47
47
before_install :
48
48
- unset CC
Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ module Data.Aeson.Internal.Time
20
20
import Prelude ()
21
21
import Prelude.Compat
22
22
23
- import Data.Fixed (Pico )
24
23
import Data.Int (Int64 )
25
24
import Data.Time
26
25
import Unsafe.Coerce (unsafeCoerce )
27
26
28
27
#if MIN_VERSION_base(4,7,0)
29
28
30
- import Data.Fixed (Fixed (MkFixed ))
29
+ import Data.Fixed (Pico , Fixed (MkFixed ))
31
30
32
31
toPico :: Integer -> Pico
33
32
toPico = MkFixed
@@ -37,6 +36,8 @@ fromPico (MkFixed i) = i
37
36
38
37
#else
39
38
39
+ import Data.Fixed (Pico )
40
+
40
41
toPico :: Integer -> Pico
41
42
toPico = unsafeCoerce
42
43
Original file line number Diff line number Diff line change @@ -221,6 +221,8 @@ jstring_ = {-# SCC "jstring_" #-} do
221
221
in Just (S a')
222
222
223
223
data S = S Int #
224
+ -- This hint will no longer trigger once hlint > 1.9.41 is released.
225
+ {-# ANN S ("HLint: ignore Use newtype instead of data" :: String) #-}
224
226
#else
225
227
startState = False
226
228
go a c
Original file line number Diff line number Diff line change 1
1
lint :
2
- hlint --cpp-include include/ .
2
+ hlint --cpp-include include/ --cpp-file .stack-work/dist/ * / * Cabal- * /build/autogen/cabal_macros.h .
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ case $BUILD in
20
20
(cd dist && cabal install --force-reinstalls " $SRC_TGZ " )
21
21
;;
22
22
hlint)
23
+ stack build --fast aeson --stack-yaml stack-lts8.yaml --system-ghc --no-terminal
23
24
stack install hlint --resolver lts-8 --system-ghc --no-terminal
24
25
make lint
25
26
;;
You can’t perform that action at this time.
0 commit comments