packages feed

Agda-2.3.2.2: examples/SummerSchool07/Lecture/Bool.agda

module Bool where

data Bool : Set where
  true  : Bool
  false : Bool

if_then_else_ : {A : Set} -> Bool -> A -> A -> A
if true  then x else y = x
if false then x else y = y