Skip to content

Commit 16255ba

Browse files
committed
lint
1 parent 7e93f34 commit 16255ba

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Data/Aeson/TH.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ dispatchFunByType jc jf conName tvMap list ty = do
12951295

12961296
args :: [Q Exp]
12971297
args
1298-
| list == Omit = zipWith (dispatchFunByType jc jf conName tvMap) (cycle [Omit]) rhsArgs
1298+
| list == Omit = map (dispatchFunByType jc jf conName tvMap Omit) rhsArgs
12991299
| otherwise = zipWith (dispatchFunByType jc jf conName tvMap) (cycle [Omit,Single,Plural]) (triple rhsArgs)
13001300

13011301
itf <- isInTypeFamilyApp tyVarNames tyCon tyArgs

tests/UnitTests/OptionalFields/Common.hs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE DeriveGeneric #-}
22
{-# LANGUAGE DuplicateRecordFields #-}
3-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE TypeApplications #-}
65
{-# LANGUAGE UndecidableInstances #-}

0 commit comments

Comments
 (0)