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
type t = { | |
name : string; | |
tags : Tag.S.t; | |
} | |
let mk name tags = { name; tags; } | |
let tags t = t.tags |
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
(** Subset of the Set.S signature *) | |
module type Set = sig | |
type t | |
val subset : t -> t -> bool | |
end | |
let f (type set) (module S : Set with type t = set) (s : set) (l : set list) = | |
List.exists (S.subset s) l |
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
module Foo = struct | |
let view = function | |
| 0 -> `A | |
| 1 -> `B | |
| 2 -> `C | |
| _ -> `Other | |
end |
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
let view = function | |
| 0 -> `A | |
| 1 -> `B | |
| 2 -> `C | |
| _ -> `Foobar | |
module Foo = struct | |
let view = view | |
end |
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
open Core_bench | |
module type S = sig | |
type t | |
val n : int | |
val poly : t -> t -> int | |
val quad : t -> t -> int | |
val discr : t -> t -> int | |
val test_values : (string * t * t) list | |
end |
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
─( 13:56:23 )─< command 1 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─ | |
utop # type foo = [`A | `B ];; | |
type foo = [ `A | `B ] | |
─( 13:56:27 )─< command 2 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─ | |
utop # let f = function #foo -> 0;; | |
val f : [< foo ] -> int = <fun> | |
─( 13:56:32 )─< command 3 >──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────{ counter: 0 }─ | |
utop # let f = function #foo -> 0 | `C -> 1;; | |
val f : [< `A | `B | `C ] -> int = <fun> |
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
let rec flat_map_rec f s = | |
Seq.flat_map (fun x -> | |
match f x with | |
| `Ok -> Seq.return x | |
| `Seq s' -> flat_map_rec f s' | |
) s |
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 path | |
let g:opamshare = substitute(system('opam config var share'),'\n$','','''') | |
" Merlin | |
execute "set rtp+=" . g:opamshare . "/merlin/vim" | |
let g:syntastic_ignore_files = ['\m\c\.ml[ly]$'] | |
let g:syntastic_ocaml_checkers = ['merlin'] | |
" Make syntastic populate the location list to allow jumping to the next error | |
let g:syntastic_always_populate_loc_list = 1 |
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
module WI = Weak.Make( | |
struct | |
type t = int | |
let hash i = i | |
let equal i j = i = j | |
end) | |
let wi = WI.create 17 | |
let f () = |
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
(** | |
Proof automatically generated by Archsat | |
Input file: eq_diamond6.smt2 | |
**) | |
(* File '/home/guigui/build/bench/smtlib/QF_UF/eq_diamond/eq_diamond6.smt2', line 11, character 0-18 *) | |
Parameter U : Type. | |
(* File '/home/guigui/build/bench/smtlib/QF_UF/eq_diamond/eq_diamond6.smt2', line 12, character 0-21 *) |
NewerOlder