Can use purescript compile to auto curry javascrip code?

if i use purescript define function

add :: Int -> Int -> Int
add x y = x + y

i want to compile like

function add(x){
  return function(y){
  x + y 
  }
}

it’s possible ?

after, test , sorry ,already is :grinning:

4 Likes