mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-28 09:23:18 -06:00
refactoring
This commit is contained in:
1 parent
f6789fdfbf
commit
ef84adf107
1 file changed
+3
-3
@@ -182,9 +182,9 @@ inferLType gr g trm = case trm of
|
|||||||
|
|
||||||
K s ->
|
K s ->
|
||||||
let trm' = case words s of
|
let trm' = case words s of
|
||||||
[] -> Empty
|
[] -> Empty
|
||||||
[w] -> K w
|
[w] -> K w
|
||||||
ws -> foldr C Empty (map K ws)
|
(w:ws) -> foldl (\t -> C t . K) (K w) ws
|
||||||
in return (trm', typeStr)
|
in return (trm', typeStr)
|
||||||
|
|
||||||
EInt i -> return (trm, typeInt)
|
EInt i -> return (trm, typeInt)
|
||||||
|
|||||||
Reference in new issue
Block a user