mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 23:32:51 -06:00
added type signature for expr2tree to make it visible for haddock
This commit is contained in:
@@ -165,6 +165,7 @@ tree2expr (Var x) = EVar x
|
|||||||
|
|
||||||
-- | Converts an expression to tree. If the expression
|
-- | Converts an expression to tree. If the expression
|
||||||
-- contains unevaluated applications they will be applied.
|
-- contains unevaluated applications they will be applied.
|
||||||
|
expr2tree :: Expr -> Tree
|
||||||
expr2tree e = value2tree (eval Map.empty e) [] []
|
expr2tree e = value2tree (eval Map.empty e) [] []
|
||||||
where
|
where
|
||||||
value2tree (VApp v1 v2) xs ts = value2tree v1 xs (value2tree v2 [] []:ts)
|
value2tree (VApp v1 v2) xs ts = value2tree v1 xs (value2tree v2 [] []:ts)
|
||||||
|
|||||||
Reference in New Issue
Block a user