summaryrefslogtreecommitdiff
path: root/src/GF/Data/Trie2.hs
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/Trie2.hs
parent55f889eda88d847ace5cdae00b175434006be287 (diff)
"Committed_by_peb"
Diffstat (limited to 'src/GF/Data/Trie2.hs')
-rw-r--r--src/GF/Data/Trie2.hs2
1 files changed, 2 insertions, 0 deletions
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