Skip to content

Commit

Permalink
A try to remove a GHC 9.10 (base 4.20.0) warning about an unused impo…
Browse files Browse the repository at this point in the history
…rt, foldl'
  • Loading branch information
MichelBoucey committed Aug 29, 2024
1 parent 9192108 commit d71df65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Text/IPv6Addr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@ import Data.Aeson
import Data.Attoparsec.Text
import Data.Char (intToDigit, isDigit)
import Data.IP (IPv6)

#if !MIN_VERSION_base(4,20,0)
import Data.List (elemIndex, elemIndices, foldl', group,
intersperse, isSuffixOf, uncons)
#else
import Data.List (elemIndex, elemIndices, group,
intersperse, isSuffixOf, uncons)
#endif


import Data.Maybe (fromJust, isJust)

#if !MIN_VERSION_base(4,11,0)
Expand Down

0 comments on commit d71df65

Please sign in to comment.