aboutsummaryrefslogtreecommitdiffstats
path: root/Mosaic.hs
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2007-06-14 22:52:11 +0200
committerSpencer Janssen <sjanssen@cse.unl.edu>2007-06-14 22:52:11 +0200
commit14d623d780af79243097adbd531256885731008e (patch)
treeda7d1e76e8a1ceed07774b85f3725ebc3d2974ca /Mosaic.hs
parentb7e079c94b2e13721f9ddf5665cd1defc1f89df7 (diff)
downloadXMonadContrib-14d623d780af79243097adbd531256885731008e.tar.gz
XMonadContrib-14d623d780af79243097adbd531256885731008e.tar.xz
XMonadContrib-14d623d780af79243097adbd531256885731008e.zip
Use Haskell '98 data declaration rather than GADT-style
darcs-hash:20070614205211-a5988-dec9cdc964e4a3023a02f75aa1f67f116a581b5f.gz
Diffstat (limited to 'Mosaic.hs')
-rw-r--r--Mosaic.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Mosaic.hs b/Mosaic.hs
index 0acd854..d4e09b3 100644
--- a/Mosaic.hs
+++ b/Mosaic.hs
@@ -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