Skip to content

Commit f7b49db

Browse files
[Import] Induction...Level (#2642)
* [Import] ... * [Import] ... * Update src/Induction/WellFounded.agda * Update src/Induction/WellFounded.agda --------- Co-authored-by: jamesmckinna <31931406+jamesmckinna@users.noreply.github.com>
1 parent 5c92473 commit f7b49db

File tree

10 files changed

+44
-38
lines changed

10 files changed

+44
-38
lines changed

src/IO/Base.agda

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88

99
module IO.Base where
1010

11-
open import Level
12-
open import Codata.Musical.Notation
13-
open import Data.Bool.Base using (Bool; true; false; not)
1411
open import Agda.Builtin.Maybe using (Maybe; nothing; just)
12+
open import Codata.Musical.Notation using (♭; ♯_; ∞)
13+
open import Data.Bool.Base using (Bool; true; false; not)
1514
open import Data.Sum.Base using (_⊎_; inj₁; inj₂)
16-
import Agda.Builtin.Unit as Unit0
17-
open import Data.Unit.Polymorphic.Base
15+
open import Data.Unit.Polymorphic.Base using (⊤)
1816
open import Function.Base using (_∘′_; const; flip)
19-
import IO.Primitive.Core as Prim
17+
open import Level using (Level; Lift; lower; 0ℓ; suc)
18+
19+
import Agda.Builtin.Unit as Unit0 using (⊤)
20+
import IO.Primitive.Core as Prim using (IO; pure; _>>=_; _>>_)
2021

2122
private
2223
variable

src/IO/Effectful.agda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
module IO.Effectful where
1010

11-
open import Level
12-
open import Effect.Functor
13-
open import Effect.Applicative
14-
open import Effect.Monad
11+
open import Level using (Level; _⊔_)
12+
open import Effect.Functor using (RawFunctor)
13+
open import Effect.Applicative using (RawApplicative)
14+
open import Effect.Monad using (RawMonad)
1515

1616
open import IO.Base
1717

src/IO/Finite.agda

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
module IO.Finite where
1010

11-
open import Data.Unit.Polymorphic.Base
12-
open import Agda.Builtin.String
13-
import Data.Unit.Base as Unit0
14-
open import IO.Base
15-
import IO.Primitive.Core as Prim
11+
open import Data.Unit.Polymorphic.Base using (⊤)
12+
open import Agda.Builtin.String using (String)
13+
import Data.Unit.Base as Unit0 using (⊤)
14+
open import IO.Base as Base using (IO; lift; lift′)
15+
import IO.Primitive.Core as Prim using (IO; _>>=_; _>>_)
1616
import IO.Primitive.Finite as Prim
17-
open import Level
17+
using (getLine; readFile; writeFile; appendFile; putStr; putStrLn)
18+
open import Level using (Level; Lift; 0ℓ; suc)
1819

1920
private
2021
variable

src/IO/Infinite.agda

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88

99
module IO.Infinite where
1010

11-
open import Codata.Musical.Costring
12-
open import Agda.Builtin.String
13-
open import Data.Unit.Polymorphic.Base
14-
import Data.Unit.Base as Unit0
15-
open import IO.Base
16-
import IO.Primitive.Core as Prim
11+
open import Codata.Musical.Costring using (Costring)
12+
open import Agda.Builtin.String using (String)
13+
open import Data.Unit.Polymorphic.Base using (⊤)
14+
import Data.Unit.Base as Unit0 using (⊤)
15+
open import IO.Base as Base using (IO; lift; lift′)
16+
import IO.Primitive.Core as Prim using (IO; _>>=_; _>>_)
1717
import IO.Primitive.Infinite as Prim
18-
open import Level
18+
using (getContents; writeFile; appendFile; putStr; putStrLn)
19+
open import Level using (Level; Lift; 0ℓ; suc)
1920

2021
private
2122
variable

src/IO/Instances.agda

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
module IO.Instances where
1010

11-
open import IO.Base
12-
open import Effect.Functor
13-
open import Effect.Applicative
14-
open import Effect.Monad
15-
open import IO.Effectful
11+
open import Effect.Functor using (RawFunctor)
12+
open import Effect.Applicative using (RawApplicative)
13+
open import Effect.Monad using (RawMonad)
14+
open import IO.Base using (IO)
15+
open import IO.Effectful using (functor; applicative; monad)
1616

1717
instance
1818
ioFunctor = functor

src/IO/Primitive/Finite.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module IO.Primitive.Finite where
1212
-- NOTE: the contents of this module should be accessed via `IO` or
1313
-- `IO.Finite`.
1414

15-
open import Agda.Builtin.IO
16-
open import Agda.Builtin.String
15+
open import Agda.Builtin.IO using (IO)
16+
open import Agda.Builtin.String using (String)
1717
open import Agda.Builtin.Unit using () renaming (⊤ to Unit)
1818

1919
------------------------------------------------------------------------

src/IO/Primitive/Infinite.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module IO.Primitive.Infinite where
1212
-- NOTE: the contents of this module should be accessed via `IO` or
1313
-- `IO.Infinite`.
1414

15-
open import Codata.Musical.Costring
16-
open import Agda.Builtin.String
15+
open import Codata.Musical.Costring using (Costring)
16+
open import Agda.Builtin.String using (String)
1717
open import Agda.Builtin.Unit renaming (⊤ to Unit)
1818

1919
------------------------------------------------------------------------

src/Induction/Lexicographic.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
module Induction.Lexicographic where
1010

1111
open import Data.Product.Base using (Σ; _,_; _×_)
12-
open import Induction
13-
open import Level
12+
open import Induction using (RecStruct; RecursorBuilder; build)
13+
open import Level using (Level; _⊔_)
1414

1515
-- The structure of lexicographic induction.
1616

src/Induction/WellFounded.agda

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ module Induction.WellFounded where
1111
open import Data.Product.Base using (Σ; _,_; proj₁; proj₂)
1212
open import Function.Base using (_∘_; flip; _on_)
1313
open import Induction
14+
using (RecStruct; RecursorBuilder; Recursor; build
15+
; SubsetRecursorBuilder; SubsetRecursor; subsetBuild)
1416
open import Level using (Level; _⊔_)
1517
open import Relation.Binary.Core using (Rel)
1618
open import Relation.Binary.Definitions
17-
using (Symmetric; Asymmetric; Irreflexive; _Respects₂_;
18-
_Respectsʳ_; _Respects_)
19+
using (Symmetric; Asymmetric; Irreflexive
20+
; _Respects₂_; _Respectsʳ_; _Respects_)
1921
open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl)
2022
open import Relation.Binary.Consequences using (asym⇒irr)
2123
open import Relation.Unary
24+
using (Pred; _⊆′_; _⊆_; _⇒_; Universal; IUniversal; Stable; Empty)
2225
open import Relation.Nullary.Negation.Core using (¬_)
2326

2427
private

src/Level/Literals.agda

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
module Level.Literals where
1010

1111
open import Agda.Builtin.Nat renaming (Nat to ℕ)
12-
open import Agda.Builtin.FromNat
13-
open import Agda.Builtin.Unit
12+
open import Agda.Builtin.FromNat using (Number)
13+
open import Agda.Builtin.Unit using (⊤)
1414
open import Level using (Level; 0ℓ)
1515

1616
-- Increase a Level by a number of sucs.

0 commit comments

Comments
 (0)