3AQ5X2GY5OBCA2WBECG3VQHWKZ5PHDP2MAEZBMNT2S6X2I52EWQQC instance {-# OVERLAPPING #-} FromJSON (IntMap IndexItem) whereparseJSON = withArray "AlBhed.Index" parseValueswhereparseVec = sequence . Vector.toList . Vector.map fromJSONparseValues array = case parseVec array ofSuccess x -> pure . IMap.fromList . map (\item@(IndexItem (primer, _)) -> (primer ^. volume & fromVolume, item)) $ x_ -> fail "Unable to parse values"