mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
refactoring
This commit is contained in:
@@ -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