diff options
Diffstat (limited to 'src/GF/Data')
| -rw-r--r-- | src/GF/Data/Str.hs | 1 | ||||
| -rw-r--r-- | src/GF/Data/Trie2.hs | 2 |
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 |
