From 6b72c74c18a22be571629bff149ba27cb21e4f4b Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 23 Dec 2024 00:21:49 +0100 Subject: [PATCH] Use morsey.Sequence type --- manifest.toml | 9 +++++---- src/crooked_rook.gleam | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/manifest.toml b/manifest.toml index 0e9afd5..8db8d77 100644 --- a/manifest.toml +++ b/manifest.toml @@ -3,14 +3,15 @@ packages = [ { name = "bummer", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib", "websockex"], source = "local", path = "../bummer" }, - { name = "gleam_community_ansi", version = "1.4.1", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "4CD513FC62523053E62ED7BAC2F36136EC17D6A8942728250A9A00A15E340E4B" }, + { name = "gleam_community_ansi", version = "1.4.2", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_regexp", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "479DEDC748D08B310C9FEB9C4CBEC46B95C874F7F4F2844304D6D20CA78A8BB5" }, { name = "gleam_community_colour", version = "1.4.1", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "386CB9B01B33371538672EEA8A6375A0A0ADEF41F17C86DDCB81C92AD00DA610" }, { name = "gleam_erlang", version = "0.33.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "A1D26B80F01901B59AABEE3475DD4C18D27D58FA5C897D922FCB9B099749C064" }, - { name = "gleam_json", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "0A57FB5666E695FD2BEE74C0428A98B0FC11A395D2C7B4CDF5E22C5DD32C74C6" }, - { name = "gleam_stdlib", version = "0.49.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "A7DB09F15738198A87255425FBCE049B4B84C77CC522786DC923DABA73911F13" }, + { name = "gleam_json", version = "2.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_json", source = "hex", outer_checksum = "093214EB186A88D301795A94F0A8128C2E24CF1423997ED31A6C6CC67FC3E1A1" }, + { name = "gleam_regexp", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_regexp", source = "hex", outer_checksum = "A3655FDD288571E90EE9C4009B719FEF59FA16AFCDF3952A76A125AF23CF1592" }, + { name = "gleam_stdlib", version = "0.51.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "14AFA8D3DDD7045203D422715DBB822D1725992A31DF35A08D97389014B74B68" }, { name = "glearray", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "glearray", source = "hex", outer_checksum = "B99767A9BC63EF9CC8809F66C7276042E5EFEACAA5B25188B552D3691B91AC6D" }, { name = "gleeunit", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "F7A7228925D3EE7D0813C922E062BFD6D7E9310F0BEE585D3A42F3307E3CFD13" }, - { name = "morsey", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "morsey", source = "hex", outer_checksum = "73D0BAD367A2B6EF9E2EB321F13283608E01D7ECD632FA1678D8BDEB5F6A14EF" }, + { name = "morsey", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "morsey", source = "hex", outer_checksum = "15CD2D4E8F94482F92DA1CBD5273489149567EDF30A99297F9E762369E20E745" }, { name = "owl", version = "0.12.0", build_tools = ["mix"], requirements = ["ucwidth"], otp_app = "owl", source = "hex", outer_checksum = "241D85AE62824DD72F9B2E4A5BA4E69EBB9960089A3C68CE6C1DDF2073DB3C15" }, { name = "repeatedly", version = "2.1.2", build_tools = ["gleam"], requirements = [], otp_app = "repeatedly", source = "hex", outer_checksum = "93AE1938DDE0DC0F7034F32C1BF0D4E89ACEBA82198A1FE21F604E849DA5F589" }, { name = "spinner", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_community_ansi", "gleam_stdlib", "glearray", "repeatedly"], otp_app = "spinner", source = "hex", outer_checksum = "B824C4CFDA6AC912D14365BF365F2A52C4DA63EF2D768D2A1C46D9BF7AF669E7" }, diff --git a/src/crooked_rook.gleam b/src/crooked_rook.gleam index b71b4b1..7e171b9 100644 --- a/src/crooked_rook.gleam +++ b/src/crooked_rook.gleam @@ -77,7 +77,7 @@ fn scan_with_spinner(socket: bummer.Connection, miliseconds: Int) { |> with_spinner("Connecting to a vibrating device") } -fn vibrate(socket: bummer.Connection, morse: List(morsey.Char)) -> Nil { +fn vibrate(socket: bummer.Connection, morse: morsey.Sequence) -> Nil { // International Morse Code // 1. The length of a dot is one unit. // 2. A dash is three units.