No details of compilation error
Closed this issue · 2 comments
joprice commented
When compilation fails, the error is simply Frege compilation error
.
earldouglas commented
@joprice Can you provide an example? I'm having trouble reproducing this issue:
HelloWorld.fr:
package example.HelloWorld where
main :: [String] -> IO ()
main _ = foo bar baz
sbt:sbt-frege-93> compile
E /home/james/sbt-frege-93/src/main/frege/example/HelloWorld.fr:4: can't
resolve `foo`, did you mean `for` perhaps?
E /home/james/sbt-frege-93/src/main/frege/example/HelloWorld.fr:4: can't
resolve `bar`, did you mean `or` perhaps?
E /home/james/sbt-frege-93/src/main/frege/example/HelloWorld.fr:4: can't
resolve `baz`, did you mean `max` perhaps?
example.HelloWorld: build failed because of compilation errors.
Build failed.
[error] stack trace is suppressed; run last Compile / managedSources for the full output
[error] (Compile / managedSources) Frege compilation error
[error] Total time: 1 s, completed Feb 24, 2022 9:47:00 AM
joprice commented
Yup I’ll add some more details later today and try your example. Might be just some situations not handled by free itself