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

Trouble migrating decco to rescript11

$
0
0
module Common = {
  @spice
  type comparator = string // for example
}

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

You can configure the mode in the rescript.json for ReScript v11

// uncurried
"ppx-flags": [
  ...,
  [
      "@greenlabs/ppx-spice/ppx",
      "-uncurried"
    ],
  ...
]

// curried
"ppx-flags": [
  ...,
  "@greenlabs/ppx-spice/ppx"
  ...,
]

Viewing all articles
Browse latest Browse all 1965

Trending Articles