dawg-ord-0.2: src/Data/DAWG/Int/Dynamic/Internal.hs
-- | The module exports internal representation of dynamic DAWG.
module Data.DAWG.Int.Dynamic.Internal
(
-- * DAWG type
DAWG (..)
) where
-- import Control.Applicative ((<$>), (<*>))
-- import Data.Binary (Binary, put, get)
import Data.DAWG.Gen.Types
import Data.DAWG.Gen.Graph (Graph)
import qualified Data.DAWG.Int.Dynamic.Node as N
-- | A directed acyclic word graph with phantom type @a@
-- representing the type of alphabet elements.
data DAWG a = DAWG
{ graph :: !(Graph N.Node)
, root :: !ID }
deriving (Show, Eq, Ord)
-- instance Binary (DAWG a) where
-- put d = do
-- put (graph d)
-- put (root d)
-- get = DAWG <$> get <*> get