Skip to content

Commit

Permalink
πŸ› Rename ffi module to pprint_ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
MystPi committed Apr 22, 2024
1 parent c9073c8 commit 2b38fc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/pprint/decoder.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ fn decode_type(value: Dynamic) -> Result(Type, List(dynamic.DecodeError)) {
Ok(TForeign(string.inspect(value)))
}

@external(erlang, "ffi", "decode_custom_type")
@external(javascript, "../ffi.mjs", "decode_custom_type")
@external(erlang, "pprint_ffi", "decode_custom_type")
@external(javascript, "../pprint_ffi.mjs", "decode_custom_type")
fn decode_custom_type(value: Dynamic) -> Result(Type, List(dynamic.DecodeError))

@external(erlang, "ffi", "decode_tuple")
@external(javascript, "../ffi.mjs", "decode_tuple")
@external(erlang, "pprint_ffi", "decode_tuple")
@external(javascript, "../pprint_ffi.mjs", "decode_tuple")
fn decode_tuple(
value: Dynamic,
) -> Result(List(Dynamic), List(dynamic.DecodeError))

@external(erlang, "ffi", "decode_nil")
@external(javascript, "../ffi.mjs", "decode_nil")
@external(erlang, "pprint_ffi", "decode_nil")
@external(javascript, "../pprint_ffi.mjs", "decode_nil")
fn decode_nil(value: Dynamic) -> Result(Nil, List(dynamic.DecodeError))
2 changes: 1 addition & 1 deletion src/ffi.erl β†’ src/pprint_ffi.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-module(ffi).
-module(pprint_ffi).
-export([decode_nil/1, decode_tuple/1, decode_custom_type/1]).

-define(is_digit_char(X), (X > 47 andalso X < 58)).
Expand Down
File renamed without changes.

0 comments on commit 2b38fc7

Please sign in to comment.