← Back

Modules

Midnight

  • Passport.Channels
  • Passport.Compiler
  • Passport.Core
  • Passport.FMTerm
  • Passport.Properties
  • Passport.Semantics

Passport

  • Passport
12345678910111213141516171819202122232425262728
------------------------------------------------------------------------
-- The Agda standard library
--
-- Core definitions for Functions
------------------------------------------------------------------------
 
-- The contents of this file should always be accessed from `Function`.
 
{-# OPTIONS --cubical-compatible --safe #-}
 
module Function.Core where
 
open import Level using (_⊔_)
 
------------------------------------------------------------------------
-- Types
 
Fun₁ : ∀ {a} → Set a → Set a
Fun₁ A = A → A
 
Fun₂ : ∀ {a} → Set a → Set a
Fun₂ A = A → A → A
 
------------------------------------------------------------------------
-- Morphism
 
Morphism : ∀ {a} → ∀ {b} → Set a → Set b → Set (a ⊔ b)
Morphism A B = A → B