mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Define a smart constructor for Bool.
This commit is contained in:
parent
722e40571c
commit
6b6581dbbe
@ -1,6 +1,7 @@
|
||||
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, QuantifiedConstraints, StandaloneDeriving #-}
|
||||
module Analysis.Domain
|
||||
( unit
|
||||
, bool
|
||||
, Domain(..)
|
||||
) where
|
||||
|
||||
@ -12,6 +13,9 @@ import Syntax.Scope
|
||||
unit :: (Carrier sig m, Member Domain sig) => m a
|
||||
unit = send Unit
|
||||
|
||||
bool :: (Carrier sig m, Member Domain sig) => Bool -> m a
|
||||
bool = send . Bool
|
||||
|
||||
|
||||
data Domain f a
|
||||
= Unit
|
||||
|
Loading…
Reference in New Issue
Block a user