mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
More nitpicks
This commit is contained in:
parent
fa55a83fb4
commit
d17ac0bc39
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -4,5 +4,6 @@
|
||||
*.hints linguist-generated
|
||||
french_law/js/french_law.js binary linguist-generated
|
||||
french_law/ocaml/law_source/allocations_familiales.ml binary linguist-generated
|
||||
french_law/ocaml/law_source/allocations_familiales_api_web.ml binary linguist-generated
|
||||
french_law/ocaml/law_source/unit_tests/tests_allocations_famiales.ml binary linguist-generated
|
||||
french_law/python/src/allocations_familiales.py binary linguist-generated
|
||||
|
@ -228,7 +228,7 @@ let rec format_typ (fmt : Format.formatter) (typ : Dcalc.Ast.typ Marked.pos) :
|
||||
| TEnum (_, e) when D.EnumName.compare e Ast.option_enum = 0 ->
|
||||
Errors.raise_spanned_error (Marked.get_mark typ)
|
||||
"Internal Error: found an typing parameter for an eoption type of the \
|
||||
wrong lenght."
|
||||
wrong length."
|
||||
| TEnum (_ts, e) -> Format.fprintf fmt "%a.t" format_to_module_name (`Ename e)
|
||||
| TArrow (t1, t2) ->
|
||||
Format.fprintf fmt "@[<hov 2>%a ->@ %a@]" format_typ_with_parens t1
|
||||
|
@ -61,7 +61,7 @@ module To_jsoo = struct
|
||||
| TEnum (_, e) when D.EnumName.compare e option_enum = 0 ->
|
||||
Errors.raise_spanned_error (Marked.get_mark typ)
|
||||
"Internal Error: found an typing parameter for an eoption type of the \
|
||||
wrong lenght."
|
||||
wrong length."
|
||||
| TEnum (_, e) -> Format.fprintf fmt "%a Js.t" format_enum_name e
|
||||
| TArray t1 ->
|
||||
Format.fprintf fmt "@[%a@ Js.js_array Js.t@]" format_typ_with_parens t1
|
||||
|
Loading…
Reference in New Issue
Block a user