mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
Move the Show constraint on location into the MonadValue instance for Value.
This commit is contained in:
parent
18cae1545d
commit
7ea0a8e898
@ -64,7 +64,6 @@ type MonadEvaluatable location term value effects m =
|
||||
, MonadValue location value effects m
|
||||
, Recursive term
|
||||
, Reducer value (Cell location value)
|
||||
, Show location
|
||||
)
|
||||
|
||||
newtype ReturnThrow value
|
||||
|
@ -205,6 +205,7 @@ instance AbstractHole (Value location) where
|
||||
instance ( Monad (m effects)
|
||||
, Member (Resumable (ValueError location (Value location))) effects
|
||||
, MonadEvaluatable location term (Value location) effects m
|
||||
, Show location
|
||||
)
|
||||
=> MonadValue location (Value location) effects m where
|
||||
unit = pure . injValue $ Unit
|
||||
|
Loading…
Reference in New Issue
Block a user