remove read of the heads
and one tail Removed head from Utility.PartialPrelude in order to avoid the build warning with recent ghc versions as well.
This commit is contained in:
parent
10216b44d2
commit
4ca3d1d584
12 changed files with 32 additions and 42 deletions
|
@ -40,7 +40,7 @@ regionMap :: Service -> M.Map Text Region
|
|||
regionMap = M.fromList . regionInfo
|
||||
|
||||
defaultRegion :: Service -> Region
|
||||
defaultRegion = snd . Prelude.head . regionInfo
|
||||
defaultRegion = snd . fromMaybe (error "internal") . headMaybe . regionInfo
|
||||
|
||||
data ServiceRegion = BothRegion Region | S3Region Region | GlacierRegion Region
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue