Craft3e-0.2.0.1: Code for Haskell: the Craft of Functional Programming, 3rd ed.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Types

Documentation

data Tree Source #

Constructors

Leaf Char Int 
Node Int Tree Tree 

data Bit Source #

Constructors

L 
R 

Instances

Instances details
Show Bit Source # 
Instance details

Defined in Types

Methods

showsPrec :: Int -> Bit -> ShowS #

show :: Bit -> String #

showList :: [Bit] -> ShowS #

Eq Bit Source # 
Instance details

Defined in Types

Methods

(==) :: Bit -> Bit -> Bool #

(/=) :: Bit -> Bit -> Bool #

type HCode = [Bit] Source #

type Table = [(Char, HCode)] Source #