diff options
author | Eric Mertens <emertens@galois.com> | 2007-10-19 01:13:29 +0200 |
---|---|---|
committer | Eric Mertens <emertens@galois.com> | 2007-10-19 01:13:29 +0200 |
commit | 73932d8b348a387fb6fb6f175cc897f421d59804 (patch) | |
tree | 5301605a471e02cfa7992cd37cbeaa0e15ead6b7 | |
parent | 653bb22d64c87e239fa9db6bb92f6c529296004f (diff) | |
download | metatile-73932d8b348a387fb6fb6f175cc897f421d59804.tar metatile-73932d8b348a387fb6fb6f175cc897f421d59804.zip |
Deobfuscate Tall layout
darcs-hash:20071018231329-b49f3-d7bf3ee5c5901af0e37b61d41cafb4399ab827ca
-rw-r--r-- | Operations.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Operations.hs b/Operations.hs index 6081775..1dad386 100644 --- a/Operations.hs +++ b/Operations.hs @@ -439,9 +439,9 @@ instance LayoutClass Full a data Tall a = Tall Int Rational Rational deriving (Show, Read) instance LayoutClass Tall a where - doLayout (Tall nmaster _ frac) r = - return . (flip (,) Nothing) . - ap zip (tile frac r nmaster . length) . W.integrate + pureLayout (Tall nmaster _ frac) r s = zip ws rs + where ws = W.integrate s + rs = tile frac r nmaster (length ws) pureMessage (Tall nmaster delta frac) m = msum [fmap resize (fromMessage m) ,fmap incmastern (fromMessage m)] |