Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thierry Martinez
override
Commits
0f53258e
Commit
0f53258e
authored
Sep 27, 2019
by
Thierry Martinez
Browse files
Remove special case for OCaml 4.08
parent
4cecc5e5
Pipeline
#95812
failed with stages
in 20 minutes
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
parsetree_show/dune
View file @
0f53258e
...
...
@@ -3,15 +3,3 @@
(public_name override.parsetree_show)
(preprocess (staged_pps override ppxlib.metaquot ppx_deriving.std))
(libraries compiler-libs.common))
(rule
(targets parsetree_show.ml)
(deps parsetree_show.cppo.ml)
(action
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{deps} -o %{targets})))
(rule
(targets parsetree_show.mli)
(deps parsetree_show.cppo.mli)
(action
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{deps} -o %{targets})))
\ No newline at end of file
parsetree_show/parsetree_show.
cppo.
ml
→
parsetree_show/parsetree_show.ml
View file @
0f53258e
#
if
OCAML_VERSION
>=
(
4
,
07
,
0
)
&&
OCAML_VERSION
<
(
4
,
09
,
0
)
module
%
override
Stdlib
=
struct
module
%
override
Lexing
=
struct
type
position
=
_
[
@@
deriving
show
]
end
end
#
else
module
%
override
Lexing
=
struct
type
position
=
_
[
@@
deriving
show
]
end
#
endif
module
%
override
Lexing
=
struct
type
position
=
_
[
@@
deriving
show
]
end
module
%
override
Longident
=
struct
[
%%
types
]
[
@@
deriving
show
]
...
...
parsetree_show/parsetree_show.
cppo.
mli
→
parsetree_show/parsetree_show.mli
View file @
0f53258e
#
if
OCAML_VERSION
>=
(
4
,
07
,
0
)
&&
OCAML_VERSION
<
(
4
,
09
,
0
)
module
%
override
Stdlib
:
sig
module
%
override
Lexing
:
sig
type
position
=
_
[
@@
rewrite
]
[
@@
deriving
show
]
end
end
#
else
module
%
override
Lexing
:
sig
type
position
=
_
[
@@
rewrite
]
[
@@
deriving
show
]
end
#
endif
module
%
override
Lexing
:
sig
type
position
=
_
[
@@
rewrite
]
[
@@
deriving
show
]
end
module
%
override
Longident
:
sig
[
%%
types
]
[
@@
deriving
show
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment