mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-12 04:17:04 +03:00
Switch Name type to use Data.Text instead of String
This gives a few percent speedup in the interpreter.
This commit is contained in:
parent
4976a8db3e
commit
dadc5e1781
@ -1,12 +1,14 @@
|
||||
module Cryptol.ModuleSystem.Name where
|
||||
|
||||
type Ident = String
|
||||
import qualified Data.Text as Text
|
||||
|
||||
type Ident = Text.Text
|
||||
|
||||
pack :: String -> Ident
|
||||
pack = id
|
||||
pack = Text.pack
|
||||
|
||||
unpack :: Ident -> String
|
||||
unpack = id
|
||||
unpack = Text.unpack
|
||||
|
||||
-- | Module names are just namespaces.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user