123456789101112131415161718192021222324252627282930313233 |
- {-# OPTIONS --without-K #-}
- module Common.String where
- open import Agda.Builtin.String public
- open import Common.Bool
- open import Common.Char
- open import Common.List
- open import Common.Nat
- open import Common.Integer
- strEq : (x y : String) -> Bool
- strEq = primStringEquality
- infixr 30 _+S+_
- _+S+_ : (x y : String) -> String
- _+S+_ = primStringAppend
- fromList : List Char -> String
- fromList = primStringFromList
- stringToList : String -> List Char
- stringToList = primStringToList
- charToStr : Char → String
- charToStr c = primStringFromList (c ∷ [])
- intToString : Integer → String
- intToString = primShowInteger
- natToString : Nat -> String
- natToString n = intToString (pos n)
|