Skip to content

Commit

Permalink
5.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Octachron committed Sep 23, 2024
1 parent b485797 commit f5888f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundled/bundle.ml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ let float version = if version < (4,07) then simple "Float"
chain "Float" ["Array"; "ArrayLabels"]


let effect = chain "Effect" ["Deep"; "Shallow"]
let effekt = chain "Effect" ["Deep"; "Shallow"]
let semaphore = chain "Semaphore" ["Binary"; "Counting"]
let domain = chain "Domain" ["DLS"]

Expand All @@ -179,7 +179,7 @@ let simple_stdlib v = Dict.of_list @@
@ in_between v (4,12) (5,0) [ simple "CamlinternalAtomic"]
@ after v (4,14) [simple "In_channel"; simple "Out_channel"]
@ before v (5,0) (List.map simple ["Stream";"Genlex"])
@ after v (5,0) [semaphore; effect; domain; simple "Condition"; simple "Mutex"]
@ after v (5,0) [semaphore; effekt; domain; simple "Condition"; simple "Mutex"]
@ after v (5,1) [chain "Type" ["Id"]]
@ complex v
@ simples
Expand Down
4 changes: 4 additions & 0 deletions lib/ast_converter.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ and pattern pat =
| Ppat_open (m,p) (* M.(P) *) ->
Pattern.open_ (with_loc m.loc @@ H.npath m) @@ pattern p
#end
# 5.3, oo
| Ppat_effect (e, k) (* effect P, k *) ->
Pattern.( pattern e ++ pattern k)
#end

and type_declaration td: M2l.Annot.t =
Annot.union_map (fun (_,t,_) -> core_type t) td.ptype_cstrs
Expand Down

0 comments on commit f5888f4

Please sign in to comment.