module Data.String where
open import Data.Vec as Vec using (Vec)
open import Data.Char as Char using (Char)
open import Relation.Binary using (Setoid; StrictTotalOrder)
open import Data.List.Relation.Lex.Strict as StrictLex
import Relation.Binary.Construct.On as On
import Relation.Binary.PropositionalEquality as PropEq
open import Data.String.Base public
toVec : (s : String) → Vec Char (length s)
toVec s = Vec.fromList (toList s)
setoid : Setoid _ _
setoid = PropEq.setoid String
strictTotalOrder : StrictTotalOrder _ _ _
strictTotalOrder =
On.strictTotalOrder
(StrictLex.<-strictTotalOrder Char.strictTotalOrder)
toList