Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refmterr failure to parse basic output: #241

Open
jordwalke opened this issue Feb 20, 2020 · 0 comments
Open

Refmterr failure to parse basic output: #241

jordwalke opened this issue Feb 20, 2020 · 0 comments

Comments

@jordwalke
Copy link
Member

# Unformatted Error Output:
# File "bin/MyApp.re", line 460, characters 33-40:
# Error: This expression has type
#          unit effect ->
#          (unit -> (int * string list) converter -> unit) -> unit
#        but an expression was expected of type
#          (unit, int * string) performer =
#            unit effect -> (unit -> (int * string) converter -> unit) -> unit
#        Type
#          (int * string list) converter =
#            int * string list -> int * string list
#        is not compatible with type
#          (int * string) converter = int * string -> int * string
#        Type string list is not compatible with type string

Output:

 ERROR  bin/MyApp.re:460 33-40

457 ┆
458 ┆   let runPrintAndLog = ((), perform, return) => {
459 ┆     collectLogs(printAndLog(), perform, (_, x) => return(identity, 0));
460 ┆     collectPrints(printAndLog(), perform, (_, x) => return(identity, 1));
461 ┆   };
462 ┆ };
463 ┆

This type doesn't match what is expected.

  This type: ML: unit effect ->
  Expecting:


The contradicting parts:

  The type:
  Contradicts:


  The type:    list(string)
  Contradicts: string


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant