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:
parent
7d4ac1f492
commit
655c4a12ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user