Skip to content

Commit

Permalink
fix: make formatter skip resolving imports
Browse files Browse the repository at this point in the history
Additionnally adds Alternative instance for Json parser
  • Loading branch information
aboeglin committed Apr 19, 2024
1 parent f972ee3 commit e1d2bea
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 117 deletions.
3 changes: 2 additions & 1 deletion compiler/main/Run/Format.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ parseCodeToFormat code = do
}
ast <- case parseForFormatter code of
Right a ->
computeAbsoluteImportPathsForAST (optPathUtils options) False (optRootPath options) (setPath a "./Module.mad")
return $ Right a
-- computeAbsoluteImportPathsForAST (optPathUtils options) False (optRootPath options) (setPath a "./Module.mad")

Left _ ->
return $ Left $ CompilationError Error NoContext
Expand Down
2 changes: 1 addition & 1 deletion madlib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 2.0
-- see: https://github.com/sol/hpack

name: madlib
version: 0.23.9
version: 0.23.10
description: Please see the README on GitHub at <https://github.com/madlib-lang/madlib#readme>
homepage: https://github.com/madlib-lang/madlib#readme
bug-reports: https://github.com/madlib-lang/madlib/issues
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: madlib
version: 0.23.9
version: 0.23.10
github: "madlib-lang/madlib"
license: BSD3
author: "Arnaud Boeglin, Brekk Bockrath"
Expand Down
2 changes: 1 addition & 1 deletion pkg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@madlib-lang/madlib",
"version": "0.23.9",
"version": "0.23.10",
"main": "./src/run.js",
"bin": {
"madlib": "src/run.js"
Expand Down
Loading

0 comments on commit e1d2bea

Please sign in to comment.