Skip to content

Instantly share code, notes, and snippets.

@christianwish
Last active July 18, 2018 12:56
Show Gist options
  • Save christianwish/a0f6fe671255364cd559a57e2c504978 to your computer and use it in GitHub Desktop.
Save christianwish/a0f6fe671255364cd559a57e2c504978 to your computer and use it in GitHub Desktop.
type LineNumber = Int
type ColumnNumber = Int
data Identifier = Identifier {
typeId :: String
, value :: String
, position :: (LineNumber, ColumnNumber)
, children :: [Identifier]
} deriving (Show)
main = do
let a = Identifier {
typeId="?",
value="",
position=(-1, -1),
children=[]
}
let b = Identifier { typeId="?", value="", position=(-1, -1), children=(a:[a]) }
print b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment