Skip to content

Commit

Permalink
Enable Use fewer imports hint for HLint. (#488)
Browse files Browse the repository at this point in the history
* Use fewer imports.
  • Loading branch information
chungyc authored Oct 10, 2024
1 parent 5eee026 commit 0e0028b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
- ignore: {name: "Use ?~"} # 5 hints
- ignore: {name: "Use camelCase"} # 3 hints
- ignore: {name: "Use concatMap"} # 1 hint
- ignore: {name: "Use fewer imports"} # 2 hints
- ignore: {name: "Use fmap"} # 10 hints
- ignore: {name: "Use lambda-case"} # 3 hints
- ignore: {name: "Use maybe"} # 1 hint
Expand Down
3 changes: 1 addition & 2 deletions proto-lens-tests/tests/raw_fields_test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Main where
import Control.Arrow (second)
import Proto.RawFields
import Proto.RawFields_Fields
import Data.ByteString.Builder (word8)
import Data.ByteString.Builder (Builder, byteString, word8)
import Data.ProtoLens
import Lens.Family2 (Lens', (&), (.~))
import Data.Int (Int32, Int64)
Expand All @@ -24,7 +24,6 @@ import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.Lazy as LT
import Data.Text.Encoding (encodeUtf8)
import Data.ByteString.Builder (Builder, byteString)

import Data.ProtoLens.TestUtil

Expand Down
4 changes: 2 additions & 2 deletions proto-lens/src/Data/ProtoLens/Encoding/Bytes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ import Data.Semigroup ((<>))
import qualified Data.Vector.Generic as V
import Data.Word (Word8, Word32, Word64)
import Foreign.Marshal (malloc, free)
import Foreign.Storable (peek)
import System.IO (Handle, hGetBuf)
#if MIN_VERSION_base(4,11,0)
import qualified GHC.Float as Float
import Foreign.Storable (peek)
#else
import Foreign.Ptr (castPtr)
import Foreign.Marshal.Alloc (alloca)
import Foreign.Storable (Storable, poke)
import Foreign.Storable (Storable, peek, poke)
import System.IO.Unsafe (unsafePerformIO)
#endif

Expand Down

0 comments on commit 0e0028b

Please sign in to comment.