Skip to content

Commit

Permalink
fix hiding of internals
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed Feb 27, 2024
1 parent c018c12 commit c46647c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.2 - 2024-02-27

- Fix hiding of internals.

## 1.0.1 - 2024-02-27

- Mark helpers module as internal.
Expand Down
6 changes: 1 addition & 5 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "glychee"
version = "1.0.1"
version = "1.0.2"
gleam = "~> 1.0"
licences = ["Apache-2.0"]
description = "Glychee: Easy access to Elixir's Benchee from Gleam!"
Expand All @@ -15,7 +15,3 @@ pages = [
{ title = "CHANGELOG", path = "changelog.html", source = "CHANGELOG.md" },
{ title = "LICENSE", path = "license.html", source = "LICENSE" },
]

internal_modules = [
"glychee/helpers",
]
18 changes: 9 additions & 9 deletions src/glychee/benchmark.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//// a list of these benchmark functions against a list of benchmark data.
////

import glychee/helpers as h
import glychee/internal/lib

/// Function pairs a `label` with a function returning a callable.
///
Expand Down Expand Up @@ -37,16 +37,16 @@ pub fn run(
function_list: List(Function(test_data, any)),
data_list: List(Data(test_data)),
) -> Nil {
h.gleam_list_each(data_list, fn(data) {
h.gleam_io_println("\n\n")
h.gleam_io_println(separator_line <> "\n")
h.gleam_io_println("==== data set: " <> data.label)
h.gleam_io_println("\n")
h.gleam_io_println(separator_line <> "\n")
h.gleam_io_println("\n")
lib.gleam_list_each(data_list, fn(data) {
lib.gleam_io_println("\n\n")
lib.gleam_io_println(separator_line <> "\n")
lib.gleam_io_println("==== data set: " <> data.label)
lib.gleam_io_println("\n")
lib.gleam_io_println(separator_line <> "\n")
lib.gleam_io_println("\n")

function_list
|> h.gleam_list_map(fn(function: Function(test_data, any)) {
|> lib.gleam_list_map(fn(function: Function(test_data, any)) {
#(function.label, function.callable(data.data))
})
|> benchee_wrapper_run
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/glychee_test.gleam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import glychee/helpers
import glychee/internal/lib

pub fn main() {
helpers.gleam_io_println("\nNotice: There are no tests!\n")
lib.gleam_io_println("\nNotice: There are no tests!\n")
Nil
}

0 comments on commit c46647c

Please sign in to comment.