Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Sep 16, 2024
1 parent e9668be commit 8a90d7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Data/SBV/Core/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3255,8 +3255,7 @@ writeArray array key value
= literal $ ArrayModel ((keyVal, val) : tbl) def -- It's important that we "cons" the value here, since it takes precedence in a read
| True
= SBV . SVal k . Right $ cache g
where kb = kindOf (Proxy @val)
k = KArray (kindOf (Proxy @key)) kb
where k = KArray (kindOf (Proxy @key)) (kindOf (Proxy @val))

g st = do arr <- sbvToSV st array
keyVal <- sbvToSV st key
Expand Down

0 comments on commit 8a90d7e

Please sign in to comment.