mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 15:13:11 -06:00
Compute/ConcreteLazy.hs: no need to reverse when looking up labels in records
This commit is contained in:
1 parent
d8d60adb15
commit
ef4fac9d82
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user