~alcinnz/haskell-stylist

6a71648846f51fad1d9d3d9d964319de66b75e2f — Adrian Cochrane 5 years ago 22d07de
Model the tree being matched, to be converted from XML conduit.
2 files changed, 19 insertions(+), 1 deletions(-)

A Stylish/Select.hs
M stylish-haskell.cabal
A Stylish/Select.hs => Stylish/Select.hs +18 -0
@@ 0,0 1,18 @@
module Stylish.Select(
        DocumentNode(..),
        DocumentAttribute(..)
    ) where

data DocumentNode = DocumentNode {
    parent :: DocumentNode,
    prev :: DocumentNode,
    name :: Text,
    namespace :: Text,
    attributes :: [DocumentAttribute] -- Sorted alphabetically by name.
}

data DocumentAttribute = DocumentAttribute {
    name :: Text,
--    namespace :: Text, -- TODO
    value :: Text
}

M stylish-haskell.cabal => stylish-haskell.cabal +1 -1
@@ 48,7 48,7 @@ cabal-version:       >=1.10

library
  -- Modules exported by the library.
  -- exposed-modules:     
  -- exposed-modules:     Stylish.Select
  
  -- Modules included in this library but not exported.
  -- other-modules: