mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +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
|
||||
( Domain(..)
|
||||
( unit
|
||||
, Domain(..)
|
||||
) where
|
||||
|
||||
import Control.Effect.Carrier
|
||||
import Data.String (IsString)
|
||||
import Data.Text (Text)
|
||||
import Syntax.Scope
|
||||
|
||||
unit :: (Carrier sig m, Member Domain sig) => m a
|
||||
unit = send Unit
|
||||
|
||||
|
||||
data Domain f a
|
||||
= Unit
|
||||
| Bool Bool
|
||||
|
Loading…
Reference in New Issue
Block a user