Processing: [default: loading data] [chess_com_api.1.0.1: dl] [chess_com_api.1.0.1: extract] -> retrieved chess_com_api.1.0.1 (https://opam.ocaml.org/cache) [chess_com_api: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "chess_com_api" "-j" "32" "@install" (CWD=/home/opam/.opam/default/.opam-switch/build/chess_com_api.1.0.1) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -warn-error -A -g -bin-annot -bin-annot-occurrences -I lib/.chess_com_api.objs/byte -I /home/opam/.opam/default/lib/angstrom -I /home/opam/.opam/default/lib/astring -I /home/opam/.opam/default/lib/base64 -I /home/opam/.opam/default/lib/bigstringaf -I /home/opam/.opam/default/lib/bytes -I /home/opam/.opam/default/lib/cohttp -I /home/opam/.opam/default/lib/cohttp-lwt -I /home/opam/.opam/default/lib/cohttp-lwt-unix -I /home/opam/.opam/default/lib/conduit -I /home/opam/.opam/default/lib/conduit-lwt -I /home/opam/.opam/default/lib/conduit-lwt-unix -I /home/opam/.opam/default/lib/domain-name -I /home/opam/.opam/default/lib/fmt -I /home/opam/.opam/default/lib/http -H /home/opam/.opam/default/lib/http/__private__/http_bytebuffer -H /home/opam/.opam/default/lib/http/__private__/http_bytebuffer/.public_cmi -I /home/opam/.opam/default/lib/ipaddr -I /home/opam/.opam/default/lib/ipaddr-sexp -I /home/opam/.opam/default/lib/ipaddr/unix -I /home/opam/.opam/default/lib/logs -I /home/opam/.opam/default/lib/logs/fmt -I /home/opam/.opam/default/lib/logs/lwt -I /home/opam/.opam/default/lib/lwt -I /home/opam/.opam/default/lib/lwt/unix -I /home/opam/.opam/default/lib/macaddr -I /home/opam/.opam/default/lib/magic-mime -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/ocplib-endian -I /home/opam/.opam/default/lib/ocplib-endian/bigstring -I /home/opam/.opam/default/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/default/lib/re -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stringext -I /home/opam/.opam/default/lib/uri -I /home/opam/.opam/default/lib/uri-sexp -I /home/opam/.opam/default/lib/uri/services -I /home/opam/.opam/default/lib/yojson -cmi-file lib/.chess_com_api.objs/byte/chess_com_api.cmi -no-alias-deps -o lib/.chess_com_api.objs/byte/chess_com_api.cmo -c -impl lib/chess_com_api.ml) - File "lib/chess_com_api.ml", line 207, characters 4-5: - 207 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 119-207, characters 2-22: - 119 | ..match Cohttp.Response.status response with - 120 | | `OK -> - 121 | try - 122 | let json = Yojson.Basic.from_string body_str in - 123 | match json with - ... - 204 | Lwt.return games - 205 | | _ -> Lwt.return [] - 206 | with _ -> Lwt.return [] - 207 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 304, characters 4-5: - 304 | | _ -> - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 221-305, characters 2-21: - 221 | ..match Cohttp.Response.status http_response with - 222 | | `OK -> - 223 | try - 224 | let json = Yojson.Basic.from_string body_str in - 225 | match json with - ... - 302 | | _ -> Lwt.return_none - 303 | with _ -> Lwt.return_none - 304 | | _ -> - 305 | Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 357, characters 4-5: - 357 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 327-357, characters 2-24: - 327 | ..match Cohttp.Response.status response with - 328 | | `OK -> - 329 | try - 330 | let json = Yojson.Basic.from_string body_str in - 331 | match json with - ... - 354 | Lwt.return (Some player) - 355 | | _ -> Lwt.return_none - 356 | with _ -> Lwt.return_none - 357 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 381, characters 4-5: - 381 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 364-381, characters 2-22: - 364 | ..match Cohttp.Response.status response with - 365 | | `OK -> - 366 | try - 367 | let json = Yojson.Basic.from_string _body_str in - 368 | match json with - ... - 378 | Lwt.return archives - 379 | | _ -> Lwt.return [] - 380 | with _ -> Lwt.return [] - 381 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 480, characters 4-5: - 480 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 399-480, characters 2-24: - 399 | ..match Cohttp.Response.status response with - 400 | | `OK -> - 401 | try - 402 | let json = Yojson.Basic.from_string body_str in - 403 | match json with - ... - 477 | Lwt.return (Some game) - 478 | | _ -> Lwt.return_none - 479 | with _ -> Lwt.return_none - 480 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 518, characters 4-5: - 518 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 487-518, characters 2-22: - 487 | ..match Cohttp.Response.status response with - 488 | | `OK -> - 489 | try - 490 | let json = Yojson.Basic.from_string body_str in - 491 | match json with - ... - 515 | Lwt.return ongoing_games - 516 | | _ -> Lwt.return [] - 517 | with _ -> Lwt.return [] - 518 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 625, characters 4-5: - 625 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 525-625, characters 2-22: - 525 | ..match Cohttp.Response.status response with - 526 | | `OK -> - 527 | try - 528 | let json = Yojson.Basic.from_string body_str in - 529 | match json with - ... - 622 | Lwt.return games - 623 | | _ -> Lwt.return [] - 624 | with _ -> Lwt.return [] - 625 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 698, characters 4-5: - 698 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 632-698, characters 2-24: - 632 | ..match Cohttp.Response.status response with - 633 | | `OK -> - 634 | try - 635 | let json = Yojson.Basic.from_string _body_str in - 636 | match json with - ... - 695 | Lwt.return (Some stats) - 696 | | _ -> Lwt.return_none - 697 | with _ -> Lwt.return_none - 698 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 794, characters 4-5: - 794 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 706-794, characters 2-22: - 706 | ..match Cohttp.Response.status response with - 707 | | `OK -> - 708 | try - 709 | let json = Yojson.Basic.from_string _body_str in - 710 | match json with - ... - 791 | Lwt.return games - 792 | | _ -> Lwt.return [] - 793 | with _ -> Lwt.return [] - 794 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 820, characters 4-5: - 820 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 803-820, characters 2-24: - 803 | ..match Cohttp.Response.status response with - 804 | | `OK -> - 805 | try - 806 | let json = Yojson.Basic.from_string _body_str in - 807 | match json with - ... - 817 | Lwt.return (Some puzzle) - 818 | | _ -> Lwt.return_none - 819 | with _ -> Lwt.return_none - 820 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 850, characters 4-5: - 850 | | _ -> - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 829-851, characters 2-19: - 829 | ..match Cohttp.Response.status response with - 830 | | `OK -> - 831 | try - 832 | let json = Yojson.Basic.from_string body_str in - 833 | match json with - ... - 848 | | _ -> Lwt.return [] - 849 | with _ -> Lwt.return [] - 850 | | _ -> - 851 | Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 638, characters 16-27: - 638 | let chess_daily = match List.assoc_opt "chess_daily" fields with - ^^^^^^^^^^^ - Warning 26 [unused-var]: unused variable chess_daily. - - File "lib/chess_com_api.ml", line 650, characters 22-23: - 650 | | _ -> { rating = 0; date = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 661, characters 22-23: - 661 | | _ -> { rating = 0; date = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 675, characters 22-23: - 675 | | _ -> { win = 0; loss = 0; draw = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 678, characters 16-17: - 678 | | _ -> { last = { rating = 0; date = 0 }; best = { rating = 0; date = 0 }; record = { win = 0; loss = 0; draw = 0 } } in - ^ - Warning 11 [redundant-case]: this match case is unused. - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -warn-error -A -g -I lib/.chess_com_api.objs/byte -I lib/.chess_com_api.objs/native -I /home/opam/.opam/default/lib/angstrom -I /home/opam/.opam/default/lib/astring -I /home/opam/.opam/default/lib/base64 -I /home/opam/.opam/default/lib/bigstringaf -I /home/opam/.opam/default/lib/bytes -I /home/opam/.opam/default/lib/cohttp -I /home/opam/.opam/default/lib/cohttp-lwt -I /home/opam/.opam/default/lib/cohttp-lwt-unix -I /home/opam/.opam/default/lib/conduit -I /home/opam/.opam/default/lib/conduit-lwt -I /home/opam/.opam/default/lib/conduit-lwt-unix -I /home/opam/.opam/default/lib/domain-name -I /home/opam/.opam/default/lib/fmt -I /home/opam/.opam/default/lib/http -I /home/opam/.opam/default/lib/http/__private__/http_bytebuffer -H /home/opam/.opam/default/lib/http/__private__/http_bytebuffer/.public_cmi -I /home/opam/.opam/default/lib/ipaddr -I /home/opam/.opam/default/lib/ipaddr-sexp -I /home/opam/.opam/default/lib/ipaddr/unix -I /home/opam/.opam/default/lib/logs -I /home/opam/.opam/default/lib/logs/fmt -I /home/opam/.opam/default/lib/logs/lwt -I /home/opam/.opam/default/lib/lwt -I /home/opam/.opam/default/lib/lwt/unix -I /home/opam/.opam/default/lib/macaddr -I /home/opam/.opam/default/lib/magic-mime -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/ocplib-endian -I /home/opam/.opam/default/lib/ocplib-endian/bigstring -I /home/opam/.opam/default/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/default/lib/re -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stringext -I /home/opam/.opam/default/lib/uri -I /home/opam/.opam/default/lib/uri-sexp -I /home/opam/.opam/default/lib/uri/services -I /home/opam/.opam/default/lib/yojson -cmi-file lib/.chess_com_api.objs/byte/chess_com_api.cmi -no-alias-deps -o lib/.chess_com_api.objs/native/chess_com_api.cmx -c -impl lib/chess_com_api.ml) - File "lib/chess_com_api.ml", line 207, characters 4-5: - 207 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 119-207, characters 2-22: - 119 | ..match Cohttp.Response.status response with - 120 | | `OK -> - 121 | try - 122 | let json = Yojson.Basic.from_string body_str in - 123 | match json with - ... - 204 | Lwt.return games - 205 | | _ -> Lwt.return [] - 206 | with _ -> Lwt.return [] - 207 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 304, characters 4-5: - 304 | | _ -> - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 221-305, characters 2-21: - 221 | ..match Cohttp.Response.status http_response with - 222 | | `OK -> - 223 | try - 224 | let json = Yojson.Basic.from_string body_str in - 225 | match json with - ... - 302 | | _ -> Lwt.return_none - 303 | with _ -> Lwt.return_none - 304 | | _ -> - 305 | Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 357, characters 4-5: - 357 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 327-357, characters 2-24: - 327 | ..match Cohttp.Response.status response with - 328 | | `OK -> - 329 | try - 330 | let json = Yojson.Basic.from_string body_str in - 331 | match json with - ... - 354 | Lwt.return (Some player) - 355 | | _ -> Lwt.return_none - 356 | with _ -> Lwt.return_none - 357 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 381, characters 4-5: - 381 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 364-381, characters 2-22: - 364 | ..match Cohttp.Response.status response with - 365 | | `OK -> - 366 | try - 367 | let json = Yojson.Basic.from_string _body_str in - 368 | match json with - ... - 378 | Lwt.return archives - 379 | | _ -> Lwt.return [] - 380 | with _ -> Lwt.return [] - 381 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 480, characters 4-5: - 480 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 399-480, characters 2-24: - 399 | ..match Cohttp.Response.status response with - 400 | | `OK -> - 401 | try - 402 | let json = Yojson.Basic.from_string body_str in - 403 | match json with - ... - 477 | Lwt.return (Some game) - 478 | | _ -> Lwt.return_none - 479 | with _ -> Lwt.return_none - 480 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 518, characters 4-5: - 518 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 487-518, characters 2-22: - 487 | ..match Cohttp.Response.status response with - 488 | | `OK -> - 489 | try - 490 | let json = Yojson.Basic.from_string body_str in - 491 | match json with - ... - 515 | Lwt.return ongoing_games - 516 | | _ -> Lwt.return [] - 517 | with _ -> Lwt.return [] - 518 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 625, characters 4-5: - 625 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 525-625, characters 2-22: - 525 | ..match Cohttp.Response.status response with - 526 | | `OK -> - 527 | try - 528 | let json = Yojson.Basic.from_string body_str in - 529 | match json with - ... - 622 | Lwt.return games - 623 | | _ -> Lwt.return [] - 624 | with _ -> Lwt.return [] - 625 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 698, characters 4-5: - 698 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 632-698, characters 2-24: - 632 | ..match Cohttp.Response.status response with - 633 | | `OK -> - 634 | try - 635 | let json = Yojson.Basic.from_string _body_str in - 636 | match json with - ... - 695 | Lwt.return (Some stats) - 696 | | _ -> Lwt.return_none - 697 | with _ -> Lwt.return_none - 698 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 794, characters 4-5: - 794 | | _ -> Lwt.return [] - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 706-794, characters 2-22: - 706 | ..match Cohttp.Response.status response with - 707 | | `OK -> - 708 | try - 709 | let json = Yojson.Basic.from_string _body_str in - 710 | match json with - ... - 791 | Lwt.return games - 792 | | _ -> Lwt.return [] - 793 | with _ -> Lwt.return [] - 794 | | _ -> Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 820, characters 4-5: - 820 | | _ -> Lwt.return_none - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 803-820, characters 2-24: - 803 | ..match Cohttp.Response.status response with - 804 | | `OK -> - 805 | try - 806 | let json = Yojson.Basic.from_string _body_str in - 807 | match json with - ... - 817 | Lwt.return (Some puzzle) - 818 | | _ -> Lwt.return_none - 819 | with _ -> Lwt.return_none - 820 | | _ -> Lwt.return_none - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 850, characters 4-5: - 850 | | _ -> - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", lines 829-851, characters 2-19: - 829 | ..match Cohttp.Response.status response with - 830 | | `OK -> - 831 | try - 832 | let json = Yojson.Basic.from_string body_str in - 833 | match json with - ... - 848 | | _ -> Lwt.return [] - 849 | with _ -> Lwt.return [] - 850 | | _ -> - 851 | Lwt.return [] - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (`Length_required|`Loop_detected|`Unprocessable_entity| - `Method_not_allowed|`Upgrade_required|`Unauthorized|`Gone|`Switch_proxy| - `See_other|`Not_acceptable|`Payment_required|`Temporary_redirect| - `Not_modified|`Permanent_redirect|`Retry_with|`Precondition_failed| - `Code _|`Reset_content|`Non_authoritative_information|`Already_reported| - `Multi_status|`Wrong_exchange_server|`Too_many_requests|`No_response| - `Request_uri_too_long|`Forbidden|`Network_authentication_required| - `Created|`Bandwidth_limit_exceeded|`Checkpoint|`Accepted|`No_content| - `Multiple_choices|`Service_unavailable|`Proxy_authentication_required| - `Client_closed_request|`Locked|`Not_extended|`Precondition_required| - `Gateway_timeout|`Requested_range_not_satisfiable|`Expectation_failed| - `Unsupported_media_type|`Request_header_fields_too_large|`Continue| - `Processing|`Partial_content|`Http_version_not_supported| - `Request_timeout|`Network_connect_timeout_error| - `Request_entity_too_large|`Not_found|`Switching_protocols| - `Internal_server_error|`Bad_gateway|`Found|`Variant_also_negotiates| - `Blocked_by_windows_parental_controls|`Enhance_your_calm|`Use_proxy| - `Network_read_timeout_error|`Moved_permanently|`Conflict|`Bad_request| - `Not_implemented|`I_m_a_teapot|`Im_used|`Insufficient_storage| - `Failed_dependency) - - File "lib/chess_com_api.ml", line 638, characters 16-27: - 638 | let chess_daily = match List.assoc_opt "chess_daily" fields with - ^^^^^^^^^^^ - Warning 26 [unused-var]: unused variable chess_daily. - - File "lib/chess_com_api.ml", line 650, characters 22-23: - 650 | | _ -> { rating = 0; date = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 661, characters 22-23: - 661 | | _ -> { rating = 0; date = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 675, characters 22-23: - 675 | | _ -> { win = 0; loss = 0; draw = 0 } in - ^ - Warning 11 [redundant-case]: this match case is unused. - - File "lib/chess_com_api.ml", line 678, characters 16-17: - 678 | | _ -> { last = { rating = 0; date = 0 }; best = { rating = 0; date = 0 }; record = { win = 0; loss = 0; draw = 0 } } in - ^ - Warning 11 [redundant-case]: this match case is unused. -> compiled chess_com_api.1.0.1 -> installed chess_com_api.1.0.1