summaryrefslogtreecommitdiffstats
path: root/Main.hs
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-06-14 16:07:09 +0200
committerDavid Roundy <droundy@darcs.net>2007-06-14 16:07:09 +0200
commit430f163014b6a53cd87863df490ae34497d7aa9a (patch)
tree1a88084f992e6767462abdf9fb76e1e0281110c4 /Main.hs
parent8ce4b025f26cab2517003165754fb3162fbe9ea7 (diff)
downloadmetatile-430f163014b6a53cd87863df490ae34497d7aa9a.tar
metatile-430f163014b6a53cd87863df490ae34497d7aa9a.zip
make workspace tag not need to be a Num.
This change also removes the barely used 'size' field, and replaces it with a tagMember predicate. The idea is to move towards the ability to make the workspace tag be a String, which by default might be "1".."9", but could also be customized to be something meaningful to the user. darcs-hash:20070614140709-72aca-dbc1ce07bf964e4cff69deef95b453a0051ef782
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Main.hs b/Main.hs
index bf1402f..3271b2c 100644
--- a/Main.hs
+++ b/Main.hs
@@ -52,7 +52,7 @@ main = do
let winset | ("--resume" : s : _) <- args
, [(x, "")] <- reads s = x
- | otherwise = new (fromIntegral workspaces) (fromIntegral $ length xinesc)
+ | otherwise = new [0..fromIntegral workspaces-1] (fromIntegral $ length xinesc)
safeLayouts = case defaultLayouts of [] -> (full, []); (x:xs) -> (x,xs)
cf = XConf