Skip to content

Commit a268e4e

Browse files
committed
Fix hlint
1 parent a2955fb commit a268e4e

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

examples/Twitter/Generic.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
-- Use GHC generics to automatically generate good instances.
22

33
{-# LANGUAGE CPP #-}
4-
{-# LANGUAGE PackageImports #-}
5-
64
{-# OPTIONS_GHC -fno-warn-orphans #-}
75

6+
#ifdef HAS_BOTH_AESON_AND_BENCHMARKS
7+
{-# LANGUAGE PackageImports #-}
8+
#endif
9+
810
module Twitter.Generic
911
(
1012
Metadata(..)

examples/Twitter/Options.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{-# LANGUAGE CPP #-}
2+
3+
#ifdef HAS_BOTH_AESON_AND_BENCHMARKS
24
{-# LANGUAGE PackageImports #-}
5+
#endif
6+
37
module Twitter.Options (module Twitter.Options) where
48

59
#ifndef HAS_BOTH_AESON_AND_BENCHMARKS

examples/Twitter/TH.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
-- Use Template Haskell to generate good instances.
22

33
{-# LANGUAGE CPP #-}
4-
{-# LANGUAGE PackageImports #-}
54
{-# LANGUAGE TemplateHaskell #-}
65
{-# OPTIONS_GHC -fno-warn-orphans #-}
76

7+
#ifdef HAS_BOTH_AESON_AND_BENCHMARKS
8+
{-# LANGUAGE PackageImports #-}
9+
#endif
10+
811
module Twitter.TH
912
(
1013
Metadata(..)

0 commit comments

Comments
 (0)