1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 21:47:07 +03:00

Define an asBool' smart constructor.

This commit is contained in:
Rob Rix 2018-05-23 14:32:10 -04:00
parent 7d4ac1f492
commit 655c4a12ad

View File

@ -114,6 +114,9 @@ data Unit value return where
bool :: (Effectful m, Member (Boolean value) effects) => Bool -> m effects value
bool = send . Bool
asBool' :: (Effectful m, Member (Boolean value) effects) => value -> m effects Bool
asBool' = send . AsBool
data Boolean value return where
Bool :: Bool -> Boolean value value
AsBool :: value -> Boolean value Bool