Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplified String import in stdl #2016

Merged
merged 3 commits into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README/Data/List/Relation/Binary/Subset.agda
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module README.Data.List.Relation.Binary.Subset where
-- tell Agda which equality relation to use.

-- Decidable equality over Strings
open import Data.String using (String; _≟_)
open import Data.String.Base using (String)
open import Data.String.Properties using (_≟_)

-- Open the decidable membership module using Decidable ≡ over Strings
open import Data.List.Membership.DecPropositional _≟_
Expand Down
2 changes: 1 addition & 1 deletion README/Data/Tree/AVL.agda
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Data.Tree.AVL

open import Data.Nat.Properties using (<-strictTotalOrder)
open import Data.Product as Prod using (_,_; _,′_)
open import Data.String using (String)
open import Data.String.Base using (String)
open import Data.Vec using (Vec; _∷_; [])
open import Relation.Binary.PropositionalEquality

Expand Down
3 changes: 2 additions & 1 deletion README/Data/Trie/NonDependent.agda
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ open import Data.List.Base as List using (List; []; _∷_)
open import Data.List.Fresh as List# using (List#; []; _∷#_)
open import Data.Maybe as Maybe
open import Data.Product as Prod
open import Data.String as String using (String)
open import Data.String.Base as String using (String)
open import Data.String.Properties as String using (_≟_)
open import Data.These as These

open import Function.Base using (case_of_; _$_; _∘′_; id; _on_)
Expand Down
3 changes: 2 additions & 1 deletion README/Function/Reasoning.agda
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module _ {A B C : Set} {A→B : A → B} {B→C : B → C} where
open import Data.Nat
open import Data.List.Base
open import Data.Char.Base
open import Data.String as String using (String; toList; fromList; _==_)
open import Data.String.Base as String using (String; toList; fromList)
open import Data.String.Properties as String using (_==_)
open import Function.Base using (_∘_)
open import Data.Bool hiding (_≤?_)
open import Data.Product as P using (_×_; <_,_>; uncurry; proj₁)
Expand Down
2 changes: 1 addition & 1 deletion README/IO.agda
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module README.IO where
open import Level
open import Data.Nat.Base
open import Data.Nat.Show using (show)
open import Data.String using (String; _++_; lines)
open import Data.String.Base using (String; _++_; lines)
open import Data.Unit.Polymorphic
open import IO

Expand Down
2 changes: 1 addition & 1 deletion src/Data/Rational.agda
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ open import Data.Rational.Properties public
-- Version 1.5

import Data.Integer.Show as ℤ
open import Data.String using (String; _++_)
open import Data.String.Base using (String; _++_)

show : ℚ → String
show p = ℤ.show (↥ p) ++ "/" ++ ℤ.show (↧ p)
Expand Down
3 changes: 2 additions & 1 deletion src/Reflection/AST/Abstraction.agda
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

module Reflection.AST.Abstraction where

open import Data.String.Base as String using (String)
open import Data.String.Properties as String using (_≟_)
open import Data.Product.Base using (_×_; <_,_>; uncurry)
open import Data.String as String using (String)
open import Level
open import Relation.Nullary.Decidable using (Dec; map′; _×-dec_)
open import Relation.Binary using (DecidableEquality)
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/AST/Literal.agda
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open import Data.Bool.Base using (Bool; true; false)
import Data.Char as Char using (_≟_)
import Data.Float as Float using (_≟_)
import Data.Nat as ℕ using (_≟_)
import Data.String as String using (_≟_)
import Data.String.Properties as String using (_≟_)
import Data.Word as Word using (_≟_)
import Reflection.AST.Meta as Meta
import Reflection.AST.Name as Name
Expand Down
4 changes: 2 additions & 2 deletions src/Reflection/AST/Show.agda
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import Data.Char as Char using (show)
import Data.Float as Float using (show)
open import Data.List.Base hiding (_++_; intersperse)
import Data.Nat.Show as ℕ using (show)
open import Data.String.Base as String using (String; _++_; intersperse; braces; parens; _<+>_)
open import Data.String as String using (parensIfSpace)
open import Data.Product.Base using (_×_; _,_)
open import Data.String as String
using (String; _++_; intersperse; braces; parens; parensIfSpace; _<+>_)
import Data.Word as Word using (toℕ)
open import Function.Base using (id; _∘′_; case_of_)
open import Relation.Nullary.Decidable using (yes; no)
Expand Down
3 changes: 2 additions & 1 deletion src/Reflection/AST/Term.agda
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ open import Data.Nat as ℕ using (ℕ; zero; suc)
open import Data.Product.Base using (_×_; _,_; <_,_>; uncurry; map₁)
open import Data.Product.Properties using (,-injective)
open import Data.Maybe.Base using (Maybe; just; nothing)
open import Data.String as String using (String)
open import Data.String.Base using (String)
open import Data.String.Properties as String hiding (_≟_)
open import Relation.Nullary.Decidable using (map′; _×-dec_; yes; no)
open import Relation.Binary using (Decidable; DecidableEquality)
open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl; cong; cong₂)
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/AST/Traversal.agda
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module Reflection.AST.Traversal

open import Data.Nat using (ℕ; zero; suc; _+_)
open import Data.List.Base using (List; []; _∷_; _++_; reverse; length)
open import Data.String.Base using (String)
open import Data.Product.Base using (_×_; _,_)
open import Data.String using (String)
open import Function.Base using (_∘_)
open import Reflection hiding (pure)

Expand Down
3 changes: 2 additions & 1 deletion src/Test/Golden.agda
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ open import Data.Maybe.Base using (Maybe; just; nothing; fromMaybe)
open import Data.Nat.Base using (ℕ; _≡ᵇ_; _<ᵇ_; _+_; _∸_)
import Data.Nat.Show as ℕ using (show)
open import Data.Product.Base using (_×_; _,_)
open import Data.String as String using (String; lines; unlines; unwords; concat; _≟_)
open import Data.String.Base as String using (String; lines; unlines; unwords; concat)
open import Data.String.Properties as String using (_≟_)
open import Data.Sum.Base using (_⊎_; inj₁; inj₂)
open import Data.Unit.Base using (⊤)

Expand Down
2 changes: 1 addition & 1 deletion src/Text/Tabular/List.agda
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

module Text.Tabular.List where

open import Data.String using (String)
open import Data.String.Base using (String)
open import Data.List.Base
import Data.Nat.Properties as ℕₚ
open import Data.Product.Base using (-,_; proj₂)
Expand Down