1
1
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:
Rob Rix 2019-11-04 14:46:14 -05:00
parent 20555fcf84
commit 722e40571c
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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