Skip to content

Instantly share code, notes, and snippets.

@reverendpaco
Created July 26, 2010 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reverendpaco/491354 to your computer and use it in GitHub Desktop.
Save reverendpaco/491354 to your computer and use it in GitHub Desktop.
data NodeType = Top|Word|NonWord
deriving (Show,Eq)
data TrieNode a = TrieNode { wordFragment :: [a], children :: (Map.Map a (TrieNode a)),
nodeType:: NodeType } deriving (Show,Eq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment