Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1941

Trouble migrating decco to rescript11

$
0
0

Hello there,
I have converted reason files in decco to rescript using rescript@9 convertor. Now since decco uses ppx to create decoders&encoders for types. with new rescript11 I"m getting this error


  We've found a bug for you!
  /Users/drupadkumar.singh/Repo/rescript-euler-dashboard/src/screens/switchboard/AlertManager/AlertManagerTypes.res

  This function is a curried function where an uncurried function is expected

FAILED: cannot make progress due to previous errors.

I have used decco ppx in lot of my types to get these encoders/decoders. I have never used ppxlib so have very little knowledge around ppx syntax. I need to somehow check the AST maybe to find out which function is actually curried here and fix that for this conversion. Or is this new version going to break ppx libraries entirely

 @decco
  type queryConfig = {
    comparator: Common.comparator,
    query: string,
    threshold: string,
    time_range: string,
  }

Viewing all articles
Browse latest Browse all 1941

Trending Articles