Debian Codegraph @

src/Effect/Choice.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Type constructors giving rise to a semigroup at every type
5 -- e.g. (List, _++_)
6 ------------------------------------------------------------------------
7
8 {-# OPTIONS --cubical-compatible --safe #-}
9
10 module Effect.Choice where
11
12 open import Level
13
14 private
15 variable
16 ℓ ℓ′ : Level
17 A : Set ℓ
18
19 record RawChoice (F : Set ℓ → Set ℓ′) : Set (suc ℓ ⊔ ℓ′) where
20 infixr 3 _<|>_ _∣_
21 field
22 _<|>_ : F A → F A → F A
23
24 -- backwards compatibility: unicode variants
25 _∣_ : F A → F A → F A
26 _∣_ = _<|>_