Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Jan 11, 2025
1 parent a3070af commit e6b97db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion sketch_css/src/sketch_css/generate.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ fn convert(source_files: List(String), directories: utils.Directories) {
|> list.map(module.rewrite_exposings)
|> module.reject_cycles
|> result.map(fn(mods) { list.sort(mods, module.by_dependent(mods)) })
|> io.debug
|> result.map(module.convert_styles)
}

Expand Down
4 changes: 4 additions & 0 deletions sketch_css/src/sketch_css/module.gleam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import glance as g
import gleam/function
import gleam/io
import gleam/list
import gleam/order
import gleam/pair
Expand Down Expand Up @@ -70,6 +71,9 @@ pub fn reject_cycles(modules: List(Module)) -> snag.Result(List(Module)) {
/// compiled earlier.
pub fn by_dependent(modules: List(Module)) {
fn(a: Module, b: Module) {
io.debug(a.path)
io.debug(b.path)
io.debug("")
let a = to_assoc(a)
let b = to_assoc(b)
let modules = list.map(modules, to_assoc)
Expand Down

0 comments on commit e6b97db

Please sign in to comment.