mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
refactoring
This commit is contained in:
@@ -182,9 +182,9 @@ inferLType gr g trm = case trm of
|
||||
|
||||
K s ->
|
||||
let trm' = case words s of
|
||||
[] -> Empty
|
||||
[w] -> K w
|
||||
ws -> foldr C Empty (map K ws)
|
||||
[] -> Empty
|
||||
[w] -> K w
|
||||
(w:ws) -> foldl (\t -> C t . K) (K w) ws
|
||||
in return (trm', typeStr)
|
||||
|
||||
EInt i -> return (trm, typeInt)
|
||||
|
||||
Reference in New Issue
Block a user