)
where
+import Data.Generics
import Rakka.Page
| Paragraph ![InlineElement]
| Div ![Attribute] ![BlockElement]
| BlockCmd !BlockCommand
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
data InlineElement
| Image ![Attribute]
| Anchor ![Attribute] ![InlineElement]
| InlineCmd !InlineCommand
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
data ListElement
listType :: !ListType
, listItems :: ![ListItem]
}
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
data ListType
= Bullet
| Numbered
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
type ListItem = [Either ListElement InlineElement]
defTerm :: ![InlineElement]
, defDesc :: ![InlineElement]
}
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
data CommandType
= InlineCommandType
| BlockCommandType
+ deriving (Eq, Show)
type Attribute = (String, String)
, bCmdAttributes :: ![Attribute]
, bCmdContents :: ![BlockElement]
}
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)
data InlineCommand
, iCmdAttributes :: ![Attribute]
, iCmdContents :: ![InlineElement]
}
- deriving (Eq, Show)
+ deriving (Eq, Show, Typeable, Data)