Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrondin committed Nov 26, 2022
1 parent 29e2d8c commit fcf4be3
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 30 deletions.
49 changes: 27 additions & 22 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# "Asemio Style" v1.1
# Last updated for ocamlformat 0.19.0
# "Asemio Style" v1.2
# Last updated for ocamlformat 0.21.0

# All available options are listed.
# An option is commented out when the value matches the default
Expand All @@ -8,52 +8,36 @@
# - try out new values for existing options
# - if a default changed, see if we should follow it or not

# align-cases = false
align-constructors-decl = true
align-variants-decl = true
# assignment-operator = end-line
# break-before-in = fit-or-vertical
break-cases = all
# break-collection-expressions = fit-or-vertical
# break-fun-decl = wrap
# break-fun-sig = wrap
break-infix = fit-or-vertical
# break-infix-before-func = false
# break-separators = after
# break-sequences = true
# break-string-literals = auto
# break-struct = force
cases-exp-indent = 2
# cases-matching-exp-indent = normal
disambiguate-non-breaking-match = true
doc-comments = before
# doc-comments-padding = 2
# doc-comments-tag-only = default
# dock-collection-brackets = true
exp-grouping = preserve
# extension-indent = 2
field-space = tight-decl
function-indent = 0
# function-indent-nested = never
if-then-else = keyword-first
# indent-after-in = 0
# indicate-multiline-delimiters = no
indicate-nested-or-patterns = space
# infix-precedence = indent
# leading-nested-match-parens = false
let-and = sparse
# let-binding-indent = 2
# let-binding-spacing = compact
# let-module = compact
line-endings = lf
margin = 106
# match-indent = 0
# match-indent-nested = never
max-indent = 3
# module-item-spacing = sparse
# nested-match = wrap
module-item-spacing = sparse
parens-ite = true
parens-tuple = multi-line-only
# parens-tuple-patterns = multi-line-only
# parse-docstrings = false
# sequence-blank-line = preserve-one
# sequence-style = terminator
Expand All @@ -62,8 +46,29 @@ single-case = sparse
# space-around-lists = true
# space-around-records = true
# space-around-variants = true
# stritem-extension-indent = 0
type-decl = sparse
# type-decl-indent = 2
# wrap-comments = false
# wrap-fun-args = true


# DEPRECATED

# align-cases = false
align-constructors-decl = true
align-variants-decl = true
# break-before-in = fit-or-vertical
# break-collection-expressions = fit-or-vertical
# break-string-literals = auto
# break-struct = force
disambiguate-non-breaking-match = true
# extension-indent = 2
function-indent = 0
# function-indent-nested = never
# indent-after-in = 0
# let-binding-indent = 2
# match-indent = 0
# match-indent-nested = never
# nested-match = wrap
# parens-tuple-patterns = multi-line-only
# stritem-extension-indent = 0
# type-decl-indent = 2
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 1.9)
(name fuzzy_compare)
(version 1.0.0)
(version 2.0.0)
4 changes: 2 additions & 2 deletions fuzzy_compare.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ depends: [
"ocaml" { >= "4.10.0" }
"dune" { >= "1.9.0" }

"core_kernel" { >= "v0.14.0" & < "v0.15.0" }
# "ocamlformat" { = "0.19.0" } # Development
"core" { >= "v0.15.0" }
# "ocamlformat" { = "0.21.0" } # Development
# "ocaml-lsp-server" # Development

"uuseg" { with-test }
Expand Down
2 changes: 1 addition & 1 deletion src/automaton.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open! Core_kernel
open! Core

(* https://fulmicoton.com/posts/levenshtein/ *)
(* https://julesjacobs.com/2015/06/17/disqus-levenshtein-simple-and-fast.html *)
Expand Down
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(public_name fuzzy_compare)
(inline_tests)
(libraries
core_kernel
core
)
(preprocess (pps
ppx_jane
Expand Down
2 changes: 1 addition & 1 deletion src/fuzzy_compare.mli
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open! Core_kernel
open! Core

type t [@@deriving sexp]

Expand Down
2 changes: 1 addition & 1 deletion test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(name tests)
(inline_tests)
(libraries
core_kernel
core
fuzzy_compare
uuseg.string
uunf.string
Expand Down
2 changes: 1 addition & 1 deletion test/test_fuzzy_compare.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open! Core_kernel
open! Core
open Fuzzy_compare__

let%expect_test "enumerate_chi_values" =
Expand Down

0 comments on commit fcf4be3

Please sign in to comment.