1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00

Define Identifier syntax.

This commit is contained in:
Rob Rix 2017-04-06 09:23:52 -04:00
parent 9afc6986cc
commit 4c959d4635

View File

@ -9,3 +9,10 @@ newtype Leaf a = Leaf { leafContent :: ByteString }
newtype Branch a = Branch { branchElements :: [a] } newtype Branch a = Branch { branchElements :: [a] }
deriving (Eq, Show) deriving (Eq, Show)
-- Common
-- | An identifier of some other construct, whether a containing declaration (e.g. a class name) or a reference (e.g. a variable).
newtype Identifier a = Identifier ByteString
deriving (Eq, Show)