You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user tries to compile source code files with a bare purs compiler she gets the following (expected) error:
$ purs compile -v "src/**/*.purs" -g corefn,js
Error found:
in module TestPrelude
at src/TestPrelude.purs:3:1 - 3:15 (line 3, column 1 - line 3, column 15)
Module Prelude was not found.
Make sure the source file exists, and that it has been provided as an input to the compiler.
See https://github.com/purescript/documentation/blob/master/errors/ModuleNotFound.md for more information,
or to contribute content related to this error.
User navigates to the markdown error description mentioned in the error message and gets the following content:
This documentation does explain that compiler is unable to find a module from a library, but it doesn't explain how to fix the problem - how should a user tell the compiler where to find that library?
There is a mention of purs build command, that isn't there at all:
purs --help
Usage: purs COMMAND
The PureScript compiler and tools
Available options:
--version Show the version number
-h,--help Show this help text
Available commands:
bundle This command was removed in v0.15.0. Run this command
for migration information.
compile Compile PureScript source files
docs Generate documentation from PureScript source files
in a variety of formats, including Markdown and HTML
graph Module dependency graph
hierarchy Generate a GraphViz directed graph of PureScript type
classes
ide Start or query an IDE server process
publish Generates documentation packages for upload to
Pursuit
repl Enter the interactive mode (PSCi)
For help using each individual command, run `purs COMMAND --help`. For example,
`purs compile --help` displays options specific to the `compile` command.
purs 0.15.7 [development build; commit: UNKNOWN]
command-line help for the purs compile command doesn't contain any clue on how to specify a path to a library:
purs compile --help
Usage: purs compile [FILE] [-o|--output ARG] [-v|--verbose-errors]
[-c|--comments] [-g|--codegen ARG] [-p|--no-prefix]
[--json-errors]
Compile PureScript source files
Available options:
-h,--help Show this help text
FILE The input .purs file(s).
-o,--output ARG The output directory (default: "output")
-v,--verbose-errors Display verbose error messages
-c,--comments Include comments in the generated code
-g,--codegen ARG Specifies comma-separated codegen targets to include.
Accepted codegen targets are 'corefn', 'docs', 'js',
'sourcemaps'. The default target is 'js', but if this
option is used only the targets specified will be
used.
-p,--no-prefix Do not include comment header
--json-errors Print errors to stderr as JSON
Actual result:
User is unable to instruct the compiler where to find a library dependency.
User is frustrated as documentation mentions the command purs build that isn't available.
Desired result:
User understands from the documentation that additional command line flags need to be used in order to instruct the compiler to include a library sources;
Documentation doesn't include a non-existing command;
The text was updated successfully, but these errors were encountered:
When user tries to compile source code files with a bare
purs
compiler she gets the following (expected) error:User navigates to the markdown error description mentioned in the error message and gets the following content:
This documentation does explain that compiler is unable to find a module from a library, but it doesn't explain how to fix the problem - how should a user tell the compiler where to find that library?
There is a mention of
purs build
command, that isn't there at all:command-line help for the
purs compile
command doesn't contain any clue on how to specify a path to a library:Actual result:
purs build
that isn't available.Desired result:
The text was updated successfully, but these errors were encountered: