Skip to content

Move CoqDoc backends to first class modules.#122

Closed
ejgallego wants to merge 1 commit intorocq-prover:v8.5from
ejgallego:coqdoc-first-class-mod
Closed

Move CoqDoc backends to first class modules.#122
ejgallego wants to merge 1 commit intorocq-prover:v8.5from
ejgallego:coqdoc-first-class-mod

Conversation

@ejgallego
Copy link
Copy Markdown
Contributor

Adding new backends to CoqDoc is a bit painful due to the lack of runtime module selection.

Fortunately since Ocaml 3.12, first class modules allow to have a cleaner backend selection.

The patch is relatively straightforward; tested under Ocaml 3.12.1 & 4.03.

A follow-up patch (if wanted) would be to split the backends in files.

@ejgallego ejgallego force-pushed the coqdoc-first-class-mod branch 3 times, most recently from 60104c2 to c411b60 Compare December 15, 2015 14:20
@ejgallego ejgallego mentioned this pull request Dec 15, 2015
Coqdoc output backend selection is implemented using an `if then else`
construction; thus adding new backends is a bit painful.

Ocaml 3.12 has first class modules which allow to have a more convenient
runtime backend selection.

The patch is relatively straightforward; tested under Ocaml 3.12.1 & 4.03.
Move CoqDoc backends to first class modules.
@ejgallego ejgallego force-pushed the coqdoc-first-class-mod branch from c411b60 to 337d3ca Compare December 16, 2015 19:07
@ejgallego ejgallego closed this Jan 19, 2016
@ejgallego
Copy link
Copy Markdown
Contributor Author

Closing as I'm gonna consolidate the Coqdoc PR in one.

@ejgallego ejgallego deleted the coqdoc-first-class-mod branch January 19, 2016 21:55
@ejgallego ejgallego mentioned this pull request Jan 19, 2016
jfehrle pushed a commit to jfehrle/coq that referenced this pull request Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant