Compute/ConcreteLazy.hs: no need to reverse when looking up labels in records

This commit is contained in:
hallgren
2011-10-20 14:19:33 +00:00
parent 61c54d4490
commit ec346b16bb

View File

@@ -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)