← Back

Modules

Leios

  • Abstract
  • Base
  • Blocks
  • Config
  • Defaults
  • FFD
  • Foreign.BaseTypes
  • Foreign.HsTypes
  • Foreign.Types
  • Foreign.Util
  • KeyRegistration
  • Network
  • Prelude
  • Protocol
  • Short
  • Short.Decidable
  • Short.Trace.Verifier
  • Short.Trace.Verifier.Test
  • Simplified
  • Simplified.Deterministic
  • SpecStructure
  • Traces
  • Voting
  • VRF
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