forked from GitHub/gf-core
GF.Grammar.Lookup: new function lookupResDefLoc
It's like lookupResDef but it includes a source location in the output.
This commit is contained in:
@@ -36,7 +36,7 @@ module GF.Grammar.Grammar (
|
||||
PMCFG(..), Production(..), FId, FunId, SeqId, LIndex, Sequence,
|
||||
|
||||
Info(..),
|
||||
Location(..), L(..), unLoc,
|
||||
Location(..), L(..), unLoc, noLoc,
|
||||
Type,
|
||||
Cat,
|
||||
Fun,
|
||||
@@ -372,6 +372,8 @@ instance Functor L where
|
||||
unLoc :: L a -> a
|
||||
unLoc (L _ x) = x
|
||||
|
||||
noLoc = L NoLoc
|
||||
|
||||
type Type = Term
|
||||
type Cat = QIdent
|
||||
type Fun = QIdent
|
||||
|
||||
Reference in New Issue
Block a user