See ocaml/RFCs#7
Install the following opam packages:
opam install caml-mode merlin ocp-indent
Tweak your .emacs
file with some or all of the following:
; shift tab to complete
(global-set-key (kbd "S-<tab>") 'company-complete)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*---------------------------------------------------------------------------- | |
Copyright (c) 2009, Daniel C. Bünzli. All rights reserved. | |
Distributed under a BSD license, see license at the end of the file. | |
----------------------------------------------------------------------------*) | |
let str = Printf.sprintf | |
let exec = Filename.basename Sys.executable_name | |
let pr = Format.printf | |
let pr_err s = Printf.eprintf "%s:%s\n" exec s |
Since 4.06 we have UTF-X encoding support via the Buffer
module. The
following is a proposal to add UTF-X decoding (and bytes
encoding)
support with the following goals:
- Provide a low-level, allocation-free codec API in
bytes
. This API provides all the information needed to implement loops for making higher-level UTF-X codec APIs (e.g.Uutf
's folding functions) operating onbytes
andstring
values. It's not geared towards the end-user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opam-version: "2.0" | |
synopsis: "Build setenv" | |
maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>" | |
setenv: [[BLA += "BLA"]] | |
authors:[] | |
build:[[ "env" ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opam-version: "2.0" | |
synopsis: "Build environment" | |
maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>" | |
authors:[] | |
build:[[ "env" ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download vagrant box for Windows 10 from: | |
# | |
# https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ | |
# | |
# Unzip and add with: | |
# | |
# vagrant box add --name win10 MSEdge\ -\ Win10.box | |
# | |
# During the first `vagrant up` need to connect to vm UI to do this: | |
# |
The first point for me is that we should as much as possible get to a system where the following basic sequences of steps are possible.
opam switch create bla # Create switch
opam install non-ocaml-pkg # Doesn't depend on ocaml
opam install ocaml.V.VV.V+variant
or
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* See http://erratique.ch/software/uutf/doc/Uutf.String.UTF_8.html | |
If you want to test the API use: | |
opam pin add uutf https://github.com/dbuenzli/uutf.git#string-utf-8 *) | |
(** UTF-8 encoded strings. | |
The [UTF_8] module provides a {{!t}datatype} that asserts | |
that a string value is valid UTF-8 and a few functions |
This has been integrated in the README of ocaml-depext
.
See https://github.com/ocaml/opam-depext/blob/master/README.md