summaryrefslogtreecommitdiff
path: root/src/GF/Data
diff options
context:
space:
mode:
authorpeb <unknown>2005-02-17 09:12:32 +0000
committerpeb <unknown>2005-02-17 09:12:32 +0000
commit359f1b8ea2032fbf5b8ad7ad6c88e922fa83470b (patch)
tree17d52866d7f97c1817832eefb741e07a0b54cffb /src/GF/Data
parent55f889eda88d847ace5cdae00b175434006be287 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/GF/Data')
-rw-r--r--src/GF/Data/Str.hs1
-rw-r--r--src/GF/Data/Trie2.hs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/GF/Data/Str.hs b/src/GF/Data/Str.hs
index 138c39f26..743d9edc9 100644
--- a/src/GF/Data/Str.hs
+++ b/src/GF/Data/Str.hs
@@ -102,6 +102,7 @@ isZeroTok t = case t of
strTok :: Ss -> [(Ss,[String])] -> Str
strTok ds vs = Str [TN ds vs]
+prStr :: Str -> String
prStr = prQuotedString . sstr
plusStr :: Str -> Str -> Str
diff --git a/src/GF/Data/Trie2.hs b/src/GF/Data/Trie2.hs
index 5f2d3de0a..08a6531be 100644
--- a/src/GF/Data/Trie2.hs
+++ b/src/GF/Data/Trie2.hs
@@ -30,6 +30,8 @@ newtype TrieT a b = TrieT ([(a,TrieT a b)],[b])
newtype Trie a b = Trie (Map a (Trie a b), [b])
emptyTrieT = TrieT ([],[])
+
+emptyTrie :: Trie a b
emptyTrie = Trie (empty,[])
optimize :: (Ord a,Eq b) => TrieT a b -> Trie a b