mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
Provide empty cells with a Lower constraint.
This commit is contained in:
parent
1e173c4f2c
commit
d31dce7490
@ -7,9 +7,10 @@ import Control.Abstract.Addressable
|
|||||||
import Control.Abstract.Evaluator
|
import Control.Abstract.Evaluator
|
||||||
import Control.Abstract.Value
|
import Control.Abstract.Value
|
||||||
import Data.Abstract.Address
|
import Data.Abstract.Address
|
||||||
|
import Data.Semilattice.Lower
|
||||||
import Prologue
|
import Prologue
|
||||||
|
|
||||||
resumingBadAddresses :: (AbstractHole value, Monoid (Cell location value), Show location) => Evaluator location term value (Resumable (AddressError location value) ': effects) a -> Evaluator location term value effects a
|
resumingBadAddresses :: (AbstractHole value, Lower (Cell location value), Show location) => Evaluator location term value (Resumable (AddressError location value) ': effects) a -> Evaluator location term value effects a
|
||||||
resumingBadAddresses = raiseHandler (relay pure (\ (Resumable err) yield -> traceM ("AddressError:" <> show err) *> case err of
|
resumingBadAddresses = raiseHandler (relay pure (\ (Resumable err) yield -> traceM ("AddressError:" <> show err) *> case err of
|
||||||
UnallocatedAddress _ -> yield mempty
|
UnallocatedAddress _ -> yield lowerBound
|
||||||
UninitializedAddress _ -> yield hole))
|
UninitializedAddress _ -> yield hole))
|
||||||
|
Loading…
Reference in New Issue
Block a user