1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Generalize makeState to arbitrary term types.

This commit is contained in:
Rob Rix 2017-06-07 15:02:20 -04:00
parent 9d4fb0920b
commit 360ef63ab4

View File

@ -249,7 +249,7 @@ data AssignmentState term = AssignmentState
}
deriving (Eq, Show)
makeState :: Source.Source -> [Cofree [] (Record (node ': Location))] -> AssignmentState (Cofree [] (Record (node ': Location)))
makeState :: Source.Source -> [term] -> AssignmentState term
makeState source nodes = AssignmentState 0 (Info.SourcePos 1 1) source nodes