Skip to content

Commit

Permalink
refactor: correct package name
Browse files Browse the repository at this point in the history
  • Loading branch information
srghma committed Feb 15, 2022
1 parent 77a42a9 commit b5da6f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import Data.GeneratorMain (generatorMain)
main = generatorMain
```

2. From there, add a build step
2. From there, add a build step

```sh

Expand Down
2 changes: 1 addition & 1 deletion packages.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ let additions =
"https://github.com/natefaubion/purescript-tidy.git"
, version = "v0.5.3"
}
, language-cst-codegen =
, tidy-codegen =
{ dependencies =
[ "aff"
, "ansi"
Expand Down
2 changes: 1 addition & 1 deletion spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
, "lists"
, "maybe"
, "language-cst-parser"
, "language-cst-codegen"
, "tidy-codegen"
, "open-mkdirp-aff"
, "newtype"
, "node-buffer"
Expand Down
3 changes: 1 addition & 2 deletions src/Web3Generator/CodeGen.purs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Control.Monad.Error.Class (throwError)
import Control.Monad.State (class MonadState, StateT, evalStateT, get, put)
import Control.Monad.Writer (class MonadTell, runWriterT, tell)
import Data.Argonaut (Json, JsonDecodeError, decodeJson, printJsonDecodeError)
import Data.Argonaut.Decode.Error (printJsonDecodeError)
import Data.Argonaut.Parser (jsonParser)
import Data.Argonaut.Prisms (_Object)
import Data.Array (catMaybes, concat, foldMap, length, null)
Expand Down Expand Up @@ -94,7 +93,7 @@ generateCodeFromAbi opts (Abi abi) destFile = unsafePartial $
abi' = map Identity $ maybeAnnotateArity $ un Identity <$> abi
moduleName = opts.modulePrefix <> "." <> basenameWithoutExt destFile ".purs"
_module = TidyM.codegenModule moduleName $ do
declarations <- genCode (Abi $ abi') { exprPrefix: opts.exprPrefix }
declarations <- genCode (Abi abi') { exprPrefix: opts.exprPrefix }
traverse_ TidyM.write declarations
in
Gen.printModule _module
Expand Down

0 comments on commit b5da6f7

Please sign in to comment.