mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-05 14:41:54 -07:00
Use Haskell '98 data declaration rather than GADT-style
This commit is contained in:
@@ -323,9 +323,7 @@ otherDirection :: CutDirection -> CutDirection
|
|||||||
otherDirection Vertical = Horizontal
|
otherDirection Vertical = Horizontal
|
||||||
otherDirection Horizontal = Vertical
|
otherDirection Horizontal = Vertical
|
||||||
|
|
||||||
data Mosaic a where
|
data Mosaic a = M [Mosaic a] | OM a
|
||||||
M :: [Mosaic a] -> Mosaic a
|
|
||||||
OM :: a -> Mosaic a
|
|
||||||
deriving ( Show )
|
deriving ( Show )
|
||||||
|
|
||||||
instance Functor Mosaic where
|
instance Functor Mosaic where
|
||||||
|
Reference in New Issue
Block a user