Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit e00ac5e

Browse files
committed
Correct a FIXME.
1 parent 098ffe1 commit e00ac5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

semantic-analysis/src/Analysis/Syntax.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ letrec n m = do
132132
parseFile :: (Has (Throw String) sig m, MonadIO m) => FilePath -> FilePath -> m (Source.Source, File Term)
133133
parseFile srcPath jsonPath = do
134134
contents <- liftIO (B.readFile jsonPath)
135+
-- FIXME: get this from the JSON itself (cf https://github.com/tree-sitter/tree-sitter-graph/issues/69)
135136
let sourcePath = replaceExtensions jsonPath "py"
136-
-- FIXME: this is comprised of several terrible assumptions.
137137
sourceContents <- Source.fromUTF8 . B.toStrict <$> liftIO (B.readFile srcPath)
138138
let span = decrSpan (Source.totalSpan sourceContents)
139139
case (A.eitherDecodeWith A.json' (A.iparse parseGraph) contents) of

0 commit comments

Comments
 (0)