Last active
July 18, 2018 12:56
-
-
Save christianwish/a0f6fe671255364cd559a57e2c504978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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