Skip to content

Commit

Permalink
New Gleam version
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Jan 16, 2024
1 parent 3f3a567 commit e35f26e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "0.33.0"
gleam-version: "0.34.0"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
Expand Down
4 changes: 2 additions & 2 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

packages = [
{ name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleeunit", version = "1.0.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "4E75DCF846D653848094169304743DFFB386E3AECCCF611F99ADB735FF4D4DD9" },
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
{ name = "htmb", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "htmb", source = "hex", outer_checksum = "30D448F0E15DFCF7283AAAC2F351D77B9D54E318219C9FDDB1877572B67C27B7" },
{ name = "simplifile", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0BD6F0E7DA1A7E11D18B8AD48453225CAFCA4C8CFB4513D217B372D2866C501C" },
{ name = "simplifile", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "359CD7006E2F69255025C858CCC6407C11A876EC179E6ED1E46809E8DC6B1AAD" },
{ name = "snag", version = "0.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "54D32E16E33655346AA3E66CBA7E191DE0A8793D2C05284E3EFB90AD2CE92BCC" },
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ pub fn now() -> DateTime
pub fn main() {
io.debug(now())
}

7 changes: 3 additions & 4 deletions src/try_gleam.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ fn load_lesson(chapter_path: String, names: FileNames) -> snag.Result(Lesson) {
name: names.name,
text: text,
code: code,
path: chapter_path
<> "/"
<> names.slug,
path: chapter_path <> "/" <> names.slug,
previous: None,
next: None,
))
Expand Down Expand Up @@ -436,7 +434,8 @@ fn lesson_html(page: Lesson) -> String {
]),
h("article", [#("id", "playground")], [
h("section", [#("id", "left")], [
htmb.dangerous_unescaped_fragment(string_builder.from_string(page.text,
htmb.dangerous_unescaped_fragment(string_builder.from_string(
page.text,
)),
h("nav", [#("class", "prev-next")], [
navlink("Back", page.previous),
Expand Down

0 comments on commit e35f26e

Please sign in to comment.