Skip to content

Question: Isn't it a regression? 0.25.1 -> 0.26.1 #2484

@Kakadu

Description

@Kakadu

The placement of a comma looks weird.

➜  /tmp cat a.ml                                                                       
      let rez =
        [%type:
          ( [%t ptyp_constr ~loc lident (List.map names ~f:(ptyp_var ~loc))]
          , [%t ptyp_constr ~loc lident_g (List.map names_2 ~f:(ptyp_var ~loc))] )
          OCanren.Reifier.t]
➜  /tmp ocamlformat a.ml                                                           
let rez =
  [%type:
    ( [%t ptyp_constr ~loc lident (List.map names ~f:(ptyp_var ~loc))]
    , [%t ptyp_constr ~loc lident_g (List.map names_2 ~f:(ptyp_var ~loc))] )
    OCanren.Reifier.t]
;;
➜  /tmp ocamlformat --version                                                               
0.25.1
➜  /tmp opam install ocamlformat.0.26.1                                                    
...
Done.
➜  /tmp ocamlformat a.ml                                                                          
let rez =
  [%type:
    ( [%t ptyp_constr ~loc lident (List.map names ~f:(ptyp_var ~loc))]
      , [%t ptyp_constr ~loc lident_g (List.map names_2 ~f:(ptyp_var ~loc))] )
      OCanren.Reifier.t]
;;
➜  /tmp ocamlformat --version                                                                       
0.26.1                                                                          
➜  /tmp cat .ocamlformat                                                                        
profile=janestreet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions