aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/ocaml-dose3-Fix-for-ocaml-4.06.patch
blob: 2c344af8210fd9f5b96c6ea2a4fe7c45e0110690 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From aeca7656f499d7f4595319858f242276920e31bb Mon Sep 17 00:00:00 2001
From: Louis Gesbert <louis.gesbert@ocamlpro.com>
Date: Sat, 2 Dec 2017 12:51:01 +0100
Subject: [PATCH] Fix for ocaml 4.06

---
 common/criteria_lexer.mll | 8 ++++----
 common/util.ml            | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/common/criteria_lexer.mll b/common/criteria_lexer.mll
index 71f9178..fc4eae3 100644
--- a/common/criteria_lexer.mll
+++ b/common/criteria_lexer.mll
@@ -18,7 +18,7 @@
     let c = Lexing.lexeme_char lexbuf 2 in (* the delimiter can be any character *)
     (* find the terminating delimiter *)
     let endpos =
-      try String.index_from lexbuf.lex_buffer (lexbuf.lex_start_pos + 3) c with
+      try Bytes.index_from lexbuf.lex_buffer (lexbuf.lex_start_pos + 3) c with
       |Invalid_argument _ ->
           raise (Format822.Syntax_error (
             Format822.error lexbuf "String too short"))
@@ -27,9 +27,9 @@
             Format822.error lexbuf (Printf.sprintf "cannot find: %c" c)))
     in
     let len = endpos - (lexbuf.lex_start_pos + 3) in
-    let s = String.sub lexbuf.lex_buffer (lexbuf.lex_start_pos + 3) len in
-    lexbuf.Lexing.lex_curr_pos <- lexbuf.Lexing.lex_start_pos + ((String.length s)+4);
-    s
+    let s = Bytes.sub lexbuf.lex_buffer (lexbuf.lex_start_pos + 3) len in
+    lexbuf.Lexing.lex_curr_pos <- lexbuf.Lexing.lex_start_pos + ((Bytes.length s)+4);
+    Bytes.to_string s
 
 }
 
diff --git a/common/util.ml b/common/util.ml
index 598f266..36ca3d1 100644
--- a/common/util.ml
+++ b/common/util.ml
@@ -87,7 +87,7 @@ module MakeMessages(X : sig val label : string end) = struct
   let clean label =
     try 
       let s = Filename.chop_extension (Filename.basename label) in
-      String.capitalize s
+      String.capitalize_ascii s
     with Invalid_argument _ -> label
 
   let create ?(enabled=false) label =
-- 
2.11.0

atic build of pandoc-citeproc. * gnu/packages/haskell-xyz.scm (ghc-libyaml)[inputs]: Replace libyaml with libyaml+static. [arguments]: Adjust directory name. Ricardo Wurmus 2020-11-25gnu: ghc-cassava-megaparsec: Downgrade to 2.0.1....* gnu/packages/haskell-xyz.scm (ghc-cassava-megaparsec): Downgrade to 2.0.1. Signed-off-by: Leo Famulari <leo@famulari.name> Carlo Holl 2020-11-25gnu: ghc-hledger-lib: Downgrade to 0.14.1....* gnu/packages/haskell-xyz.scm (ghc-hledger-lib): Downgrade to 0.14.1. [inputs]: Replace with what is generated by guix import. Signed-off-by: Leo Famulari <leo@famulari.name> Carlo Holl 2020-11-25gnu: ghc-doctest: Downgrade to 0.16.2....* gnu/packages/haskell-xyz.scm (ghc-doctest): Downgrade to 0.16.2. [inputs]: Replace with what is generated by guix import. Signed-off-by: Leo Famulari <leo@famulari.name> Carlo Holl 2020-11-25gnu: ghc-tabular: Downgrade to 0.2.2.7....* gnu/packages/haskell-xyz.scm (ghc-tabular): Downgrade to 0.2.2.7. Signed-off-by: Leo Famulari <leo@famulari.name> Carlo Holl 2020-11-25gnu: ghc-filepath-bytestring: Update to 1.4.2.1.6....The minimum version of ghc-filepath-bytestring is now 1.4.2.1.4 in the latest release of git-annex, the only Guix package that has this library as an input. * gnu/packages/haskell-xyz.scm (ghc-filepath-bytestring): Update to 1.4.2.1.6. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Kyle Meyer 2020-11-25gnu: Add ghc-torrent....* gnu/packages/haskell-xyz.scm (ghc-torrent): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Kyle Meyer 2020-11-25gnu: Add ghc-bencode....* gnu/packages/haskell-xyz.scm (ghc-bencode): New variable. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Kyle Meyer 2020-11-23gnu: ghc-text-short: Fix spelling....* gnu/packages/haskell-xyz (ghc-text-short): Fix spelling of "similar". Vagrant Cascadian 2020-11-04gnu: Add ghc-network-multicast....* gnu/packages/haskell-xyz.scm (ghc-network-multicast): New variable. Christopher Lemmer Webber 2020-11-04gnu: Add ghc-mountpoints....* gnu/packages/haskell-xyz.scm (ghc-mountpoints): New variable. Christopher Lemmer Webber 2020-11-01gnu: Add ghc-hledger-lib....* gnu/packages/haskell-xyz.scm (ghc-hledger-lib): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-cassava-megaparsec....* gnu/packages/haskell-xyz.scm (ghc-cassava-megaparsec): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-cassava....* gnu/packages/haskell-xyz.scm (ghc-cassava): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-wizards....* gnu/packages/haskell-xyz.scm (ghc-wizards): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-uglymemo....* gnu/packages/haskell-xyz.scm (ghc-uglymemo): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-tabular....* gnu/packages/haskell-xyz.scm (ghc-tabular): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-text-short....* gnu/packages/haskell-xyz.scm (ghc-text-short): New variable. Carlo Holl 2020-11-01gnu: Add ghc-only....* gnu/packages/haskell-xyz.scm (ghc-only): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-lucid....* gnu/packages/haskell-xyz.scm (ghc-lucid): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-hspec-megaparsec....* gnu/packages/haskell-xyz.scm (ghc-hspec-megaparsec): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: ghc-doctest: Update to 0.16.3....* gnu/packages/haskell-xyz.scm (ghc-doctest): Update to 0.16.3. [inputs,native-inputs]: Replace with what is generated by guix import. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-decimal....* gnu/packages/haskell-xyz.scm (ghc-decimal): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-csv....* gnu/packages/haskell-xyz.scm (ghc-csv): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl 2020-11-01gnu: Add ghc-control-monad-free....* gnu/packages/haskell-xyz.scm (ghc-control-monad-free): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Carlo Holl