Use Haskell '98 data declaration rather than GADT-style

This commit is contained in:
Spencer Janssen
2007-06-14 20:52:11 +00:00
parent 3d8e47448f
commit c8bfda92a7

View File

@@ -323,9 +323,7 @@ otherDirection :: CutDirection -> CutDirection
otherDirection Vertical = Horizontal
otherDirection Horizontal = Vertical
data Mosaic a where
M :: [Mosaic a] -> Mosaic a
OM :: a -> Mosaic a
data Mosaic a = M [Mosaic a] | OM a
deriving ( Show )
instance Functor Mosaic where