1
0
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:
hallgren
2012-12-19 23:08:56 +00:00
parent 75696808a7
commit b4207d1b00
3 changed files with 16 additions and 14 deletions

View File

@@ -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