Skip to content

Commit c46647c

Browse files
committed
fix hiding of internals
1 parent c018c12 commit c46647c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.2 - 2024-02-27
4+
5+
- Fix hiding of internals.
6+
37
## 1.0.1 - 2024-02-27
48

59
- Mark helpers module as internal.

gleam.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "glychee"
2-
version = "1.0.1"
2+
version = "1.0.2"
33
gleam = "~> 1.0"
44
licences = ["Apache-2.0"]
55
description = "Glychee: Easy access to Elixir's Benchee from Gleam!"
@@ -15,7 +15,3 @@ pages = [
1515
{ title = "CHANGELOG", path = "changelog.html", source = "CHANGELOG.md" },
1616
{ title = "LICENSE", path = "license.html", source = "LICENSE" },
1717
]
18-
19-
internal_modules = [
20-
"glychee/helpers",
21-
]

src/glychee/benchmark.gleam

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//// a list of these benchmark functions against a list of benchmark data.
33
////
44

5-
import glychee/helpers as h
5+
import glychee/internal/lib
66

77
/// Function pairs a `label` with a function returning a callable.
88
///
@@ -37,16 +37,16 @@ pub fn run(
3737
function_list: List(Function(test_data, any)),
3838
data_list: List(Data(test_data)),
3939
) -> Nil {
40-
h.gleam_list_each(data_list, fn(data) {
41-
h.gleam_io_println("\n\n")
42-
h.gleam_io_println(separator_line <> "\n")
43-
h.gleam_io_println("==== data set: " <> data.label)
44-
h.gleam_io_println("\n")
45-
h.gleam_io_println(separator_line <> "\n")
46-
h.gleam_io_println("\n")
40+
lib.gleam_list_each(data_list, fn(data) {
41+
lib.gleam_io_println("\n\n")
42+
lib.gleam_io_println(separator_line <> "\n")
43+
lib.gleam_io_println("==== data set: " <> data.label)
44+
lib.gleam_io_println("\n")
45+
lib.gleam_io_println(separator_line <> "\n")
46+
lib.gleam_io_println("\n")
4747

4848
function_list
49-
|> h.gleam_list_map(fn(function: Function(test_data, any)) {
49+
|> lib.gleam_list_map(fn(function: Function(test_data, any)) {
5050
#(function.label, function.callable(data.data))
5151
})
5252
|> benchee_wrapper_run
File renamed without changes.

test/glychee_test.gleam

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import glychee/helpers
1+
import glychee/internal/lib
22

33
pub fn main() {
4-
helpers.gleam_io_println("\nNotice: There are no tests!\n")
4+
lib.gleam_io_println("\nNotice: There are no tests!\n")
55
Nil
66
}

0 commit comments

Comments
 (0)