module Types (Tree(Leaf,Node), Bit(L,R), HCode, Table ) where
data Tree = Leaf Char Int | Node Int Tree Tree
-- The types of bits, Huffman codes and tables of Huffman codes.
data Bit = L | R deriving (Eq,Show)
type HCode = [Bit]
type Table = [(Char, HCode)]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here