Skip to content

Commit

Permalink
Fix hlint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz committed Sep 19, 2022
1 parent 97d461c commit 099633e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Echidna/Types/Campaign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ makeLenses ''Campaign

instance ToJSON Campaign where
toJSON (Campaign ts co gi _ _ _ _ _) = object $ ("tests", toJSON $ map format ts)
: ((if co == mempty then [] else [
("coverage",) . toJSON . mapKeys (("0x" <>) . (`showHex` "") . keccak) $ toList <$> co]) ++
[(("maxgas",) . toJSON . toList) gi | gi /= mempty]) where
: [("coverage",) . toJSON . mapKeys (("0x" <>) . (`showHex` "") . keccak) $ toList <$> co | co /= mempty] ++
[(("maxgas",) . toJSON . toList) gi | gi /= mempty] where
format _ = "" :: String -- TODO: complete this format string

instance Has GenDict Campaign where
Expand Down

0 comments on commit 099633e

Please sign in to comment.