summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Mertens <emertens@galois.com>2007-10-19 01:14:18 +0200
committerEric Mertens <emertens@galois.com>2007-10-19 01:14:18 +0200
commitb0ed373e78a86d1c85cc4ef348a26b7e402d68d1 (patch)
treea054f08d0b37ab5e49d6e816996e9c6d4f826cfd
parent73932d8b348a387fb6fb6f175cc897f421d59804 (diff)
downloadmetatile-b0ed373e78a86d1c85cc4ef348a26b7e402d68d1.tar
metatile-b0ed373e78a86d1c85cc4ef348a26b7e402d68d1.zip
Operations.hs: flip maybe id is fromMaybe
darcs-hash:20071018231418-b49f3-87484165c6fc9cf2aa6b961e5d923c2bb12a608a
-rw-r--r--Operations.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Operations.hs b/Operations.hs
index 1dad386..ba8d109 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -389,7 +389,7 @@ instance ReadableLayout a => LayoutClass Select a where
| Just (JumpToLayout x) <- fromMessage m = switchl (j x)
| Just ReleaseResources <- fromMessage m = do -- each branch has a different type
mlls' <- mapM (flip handleMessage m) (l:ls)
- let lls' = zipWith (flip maybe id) (l:ls) mlls'
+ let lls' = zipWith fromMaybe (l:ls) mlls'
return (Just (Select lls'))
where rls [] = []