mirror of
https://github.com/github/semantic.git
synced 2024-12-28 09:21:35 +03:00
Qualify the grammar type.
This commit is contained in:
parent
79389707fb
commit
20228b8a4d
@ -2,7 +2,7 @@
|
|||||||
module Language.Markdown.Syntax
|
module Language.Markdown.Syntax
|
||||||
( assignment
|
( assignment
|
||||||
, Syntax
|
, Syntax
|
||||||
, Grammar
|
, Grammar.Grammar
|
||||||
, Error
|
, Error
|
||||||
, Term
|
, Term
|
||||||
) where
|
) where
|
||||||
@ -16,7 +16,7 @@ import Data.Record
|
|||||||
import Data.Syntax.Assignment hiding (Assignment, Error)
|
import Data.Syntax.Assignment hiding (Assignment, Error)
|
||||||
import GHC.Generics
|
import GHC.Generics
|
||||||
import GHC.Stack
|
import GHC.Stack
|
||||||
import Language.Markdown as Grammar (Grammar(..))
|
import qualified Language.Markdown as Grammar (Grammar(..))
|
||||||
import qualified Data.Syntax.Assignment as Assignment
|
import qualified Data.Syntax.Assignment as Assignment
|
||||||
import qualified Data.Syntax as Syntax
|
import qualified Data.Syntax as Syntax
|
||||||
import Prologue hiding (Location)
|
import Prologue hiding (Location)
|
||||||
@ -41,9 +41,9 @@ instance Eq1 Paragraph where liftEq = genericLiftEq
|
|||||||
instance Show1 Paragraph where liftShowsPrec = genericLiftShowsPrec
|
instance Show1 Paragraph where liftShowsPrec = genericLiftShowsPrec
|
||||||
|
|
||||||
|
|
||||||
type Error = Assignment.Error Grammar
|
type Error = Assignment.Error Grammar.Grammar
|
||||||
type Term = Term.Term (Union Syntax) (Record Location)
|
type Term = Term.Term (Union Syntax) (Record Location)
|
||||||
type Assignment = HasCallStack => Assignment.Assignment (Cofree [] (Record (CMark.NodeType ': Location))) Grammar Term
|
type Assignment = HasCallStack => Assignment.Assignment (Cofree [] (Record (CMark.NodeType ': Location))) Grammar.Grammar Term
|
||||||
|
|
||||||
assignment :: Assignment
|
assignment :: Assignment
|
||||||
assignment = empty
|
assignment = empty
|
||||||
|
Loading…
Reference in New Issue
Block a user