summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2011-10-20 14:19:33 +0000
committerhallgren <hallgren@chalmers.se>2011-10-20 14:19:33 +0000
commitef4fac9d829a354c0d1e4182a317b320328e9d7c (patch)
tree12670901fe04118c11dabefa71c578213da4e026 /src
parentd8d60adb15f6dc4f107e006c3bb6338f32eb7fa9 (diff)
Compute/ConcreteLazy.hs: no need to reverse when looking up labels in records
Diffstat (limited to 'src')
-rw-r--r--src/compiler/GF/Compile/Compute/ConcreteLazy.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Compile/Compute/ConcreteLazy.hs b/src/compiler/GF/Compile/Compute/ConcreteLazy.hs
index 492ffdd83..91fffbc5a 100644
--- a/src/compiler/GF/Compile/Compute/ConcreteLazy.hs
+++ b/src/compiler/GF/Compile/Compute/ConcreteLazy.hs
@@ -251,7 +251,7 @@ computeTermOpt gr = comput True where
where
--{...}.l
project l = maybe (fail_project l) (comp g) . try_project l
- try_project l = fmap snd . lookup l . reverse
+ try_project l = fmap snd . lookup l
fail_project l = fail (render (text "no value for label" <+> ppLabel l))
compApp g (App f a) = do -- (f a)