| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Containers, based on the work of Abbott and others |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Level using (Level; _⊔_) |
| 10 |
open import Data.W using (W) |
| 11 |
|
| 12 |
module Data.Container where |
| 13 |
|
| 14 |
------------------------------------------------------------------------ |
| 15 |
-- Re-exporting content to maintain backwards compatibility |
| 16 |
|
| 17 |
open import Data.Container.Core public |
| 18 |
open import Data.Container.Relation.Unary.Any |
| 19 |
using (◇) renaming (map to ◇-map) public |
| 20 |
open import Data.Container.Relation.Unary.All |
| 21 |
using (□) renaming (map to □-map) public |
| 22 |
open import Data.Container.Membership |
| 23 |
using (_∈_) public |
| 24 |
open import Data.Container.Relation.Binary.Pointwise |
| 25 |
using () renaming (Pointwise to Eq) public |
| 26 |
open import Data.Container.Relation.Binary.Pointwise.Properties |
| 27 |
using (refl; sym; trans) public |
| 28 |
open import Data.Container.Relation.Binary.Equality.Setoid |
| 29 |
using (isEquivalence; setoid) public |
| 30 |
open import Data.Container.Properties |
| 31 |
using () renaming (map-identity to identity; map-compose to composition) public |
| 32 |
open import Data.Container.Related public |
| 33 |
|
| 34 |
module Morphism where |
| 35 |
|
| 36 |
open import Data.Container.Morphism.Properties |
| 37 |
using (Natural; NT; natural; complete; id-correct; ∘-correct) public |
| 38 |
|
| 39 |
open import Data.Container.Morphism |
| 40 |
using (id; _∘_) public |
| 41 |
|
| 42 |
private |
| 43 |
variable |
| 44 |
s p : Level |
| 45 |
|
| 46 |
-- The least fixpoint of a container. |
| 47 |
|
| 48 |
μ : Container s p → Set (s ⊔ p) |
| 49 |
μ = W |
| 50 |
|
| 51 |
-- The greatest fixpoint of a container can be found |
| 52 |
-- in `Data.Container.Fixpoints.Guarded` as it relies |
| 53 |
-- on the `guardedness` flag. |
| 54 |
|
| 55 |
-- You can find sized alternatives in `Data.Container.Fixpoints.Sized` |
| 56 |
-- as they rely on the unsafe flag `--sized-types`. |