mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
remove duplicated function from GF.Grammar.Macros
This commit is contained in:
@@ -82,13 +82,6 @@ funsToAndFrom t =
|
|||||||
cis = zip cs [0..]
|
cis = zip cs [0..]
|
||||||
in (v, [(c,[i | (c',i) <- cis, c' == c]) | c <- cs])
|
in (v, [(c,[i | (c',i) <- cis, c' == c]) | c <- cs])
|
||||||
|
|
||||||
typeFormConcrete :: Type -> Err (Context, Type)
|
|
||||||
typeFormConcrete t = case t of
|
|
||||||
Prod b x a t -> do
|
|
||||||
(x', typ) <- typeFormConcrete t
|
|
||||||
return ((b,x,a):x', typ)
|
|
||||||
_ -> return ([],t)
|
|
||||||
|
|
||||||
isRecursiveType :: Type -> Bool
|
isRecursiveType :: Type -> Bool
|
||||||
isRecursiveType t =
|
isRecursiveType t =
|
||||||
let (cc,c) = catSkeleton t -- thus recursivity on Cat level
|
let (cc,c) = catSkeleton t -- thus recursivity on Cat level
|
||||||
|
|||||||
Reference in New Issue
Block a user