module WURFLTypes(
Tropical(..)
, MD(..)
, emptyMD
, Tree(..)
)
where
class Tropical a where
tempty :: a
tappend :: a -> a -> a
instance Tropical (Maybe a) where
tempty = Nothing
tappend Nothing a = a
tappend ma@(Just _) Nothing = ma
tappend (Just _) mb@(Just _) = mb
emptyMD :: MD
emptyMD =
MD (True)
(11)
(2)
(35)
(90)
(2)
(False)
(False)
(False)
(False)
(0)
(0)
(0)
("wml_1_1")
("Unknown")
(True)
(False)
data MD = MD {
postMethodSupport :: !Bool
, columns :: !Int
, rows :: !Int
, maxImageHeight :: !Int
, maxImageWidth :: !Int
, colors :: !Int
, gif :: !Bool
, jpg :: !Bool
, png :: !Bool
, j2me :: !Bool
, j2meHeap :: !Int
, j2meHeight :: !Int
, j2meWidth :: !Int
, markup :: !String
, brand :: !String
, isWireless :: !Bool
, streaming3gpp :: !Bool
} deriving(Show)
data Tree a = Node String (Maybe a) [Tree a] deriving(Eq,Show)