mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
Interpret in runUnitType.
This commit is contained in:
parent
13366d65c0
commit
f176cd2c14
@ -275,10 +275,9 @@ runFunctionType = interpretAny $ \ eff -> case eff of
|
||||
pure ret
|
||||
_ -> empty
|
||||
|
||||
runUnitType :: (Unit Type \\ effects) effects'
|
||||
=> Eval location Type opaque effects a
|
||||
-> Eval location Type opaque effects' a
|
||||
runUnitType = interpretAny (\ Unit -> pure (Product []))
|
||||
runUnitType :: Eval location Type opaque (Unit Type ': effects) a
|
||||
-> Eval location Type opaque effects a
|
||||
runUnitType = interpret (\ Unit -> pure (Product []))
|
||||
|
||||
runBooleanType :: Member NonDet effects
|
||||
=> Eval location Type opaque (Boolean Type ': effects) a
|
||||
|
Loading…
Reference in New Issue
Block a user