mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
Define a smart constructor for Unit.
This commit is contained in:
parent
20555fcf84
commit
722e40571c
@ -1,12 +1,18 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving, QuantifiedConstraints, StandaloneDeriving #-}
|
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, QuantifiedConstraints, StandaloneDeriving #-}
|
||||||
module Analysis.Domain
|
module Analysis.Domain
|
||||||
( Domain(..)
|
( unit
|
||||||
|
, Domain(..)
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
import Control.Effect.Carrier
|
||||||
import Data.String (IsString)
|
import Data.String (IsString)
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
import Syntax.Scope
|
import Syntax.Scope
|
||||||
|
|
||||||
|
unit :: (Carrier sig m, Member Domain sig) => m a
|
||||||
|
unit = send Unit
|
||||||
|
|
||||||
|
|
||||||
data Domain f a
|
data Domain f a
|
||||||
= Unit
|
= Unit
|
||||||
| Bool Bool
|
| Bool Bool
|
||||||
|
Loading…
Reference in New Issue
Block a user