1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 13:02:37 +03:00

rewrite first AsArray condition

This commit is contained in:
Ayman Nadeem 2019-01-11 13:30:31 -05:00
parent 8745c48dfa
commit 92cd5634dc

View File

@ -271,7 +271,7 @@ instance ( Member (Reader ModuleInfo) sig
ret = ArrayC . ret
eff = ArrayC . handleSum (eff . handleCoercible) (\case
Abstract.Array t k -> runArrayC (k (Array t))
Abstract.AsArray (Array addresses) k -> pure addresses >>= runArrayC . k
Abstract.AsArray (Array addresses) k -> runArrayC (k addresses)
Abstract.AsArray val k -> (throwBaseError $ ArrayError val) >>= runArrayC . k)
instance AbstractHole (Value term address) where