Add unionTM to the RewMap' Trie

This commit is contained in:
Trevor Elliott 2014-12-18 11:04:08 -08:00
parent 1e063e58f3
commit e3d41b0f2c

View File

@ -110,6 +110,8 @@ instance TrieMap RewMap' (QName,[Type],Int) where
f2 (Just pM) = Just (alterTM n f pM)
unionTM f (RM a) (RM b) = RM (unionTM (unionTM (unionTM f)) a b)
toListTM (RM m) = [ ((x,ts,n),y) | (x,tM) <- toListTM m
, (ts,pM) <- toListTM tM
, (n,y) <- toListTM pM ]