------------------------------------------------------------------------
-- Modality variants
------------------------------------------------------------------------
open import Tools.Level
module Graded.Modality.Variant (a : Level) where
open import Tools.Bool
-- Modality variants:
-- * Modalities can come with one mode (๐แต) or two (๐แต and ๐แต).
record Modality-variant : Set (lsuc a) where
  no-eta-equality
  pattern
  field
    -- Is the mode ๐แต allowed?
    ๐แต-allowed : Bool
-- A variant for which ๐แต is allowed if the boolean is true.
๐แต-allowed-if : Bool โ Modality-variant
๐แต-allowed-if ok = record
  { ๐แต-allowed   = ok
  }