X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka%2FWiki.hs;h=a519d34a227da9b8a40ec6db7b66108907185fc2;hb=98fd1cb53a837a9bda7145544c34872acb13a634;hp=af50afbc7adef90939cdba3376cad8bca3de214b;hpb=656fdb2772ab4de5cd083cbe9e7c1610cccef73b;p=Rakka.git diff --git a/Rakka/Wiki.hs b/Rakka/Wiki.hs index af50afb..a519d34 100644 --- a/Rakka/Wiki.hs +++ b/Rakka/Wiki.hs @@ -18,7 +18,6 @@ module Rakka.Wiki ) where -import Data.Generics import Network.URI import Rakka.Page @@ -29,7 +28,7 @@ type WikiPage = [BlockElement] data Element = Block !BlockElement | Inline !InlineElement - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) type Attribute = (String, String) @@ -51,7 +50,7 @@ data BlockElement | Div ![Attribute] ![Element] | EmptyBlock | BlockCmd !BlockCommand - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) data InlineElement @@ -74,20 +73,20 @@ data InlineElement | LineBreak ![Attribute] | Span ![Attribute] ![InlineElement] | Image { - imgSource :: !(PageName) + imgSource :: !(Either URI PageName) , imgAlt :: !(Maybe String) } | Anchor ![Attribute] ![InlineElement] | Input ![Attribute] | EmptyInline | InlineCmd !InlineCommand - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) data ListType = Bullet | Numbered - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) type ListItem = [Element] @@ -98,7 +97,7 @@ data Definition defTerm :: ![InlineElement] , defDesc :: ![InlineElement] } - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) data CommandType @@ -113,7 +112,7 @@ data BlockCommand , bCmdAttributes :: ![Attribute] , bCmdContents :: ![BlockElement] } - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show) data InlineCommand @@ -122,4 +121,4 @@ data InlineCommand , iCmdAttributes :: ![Attribute] , iCmdContents :: ![InlineElement] } - deriving (Eq, Show, Typeable, Data) + deriving (Eq, Show)