~m15a

Hokkaido, Japan

https://github.com/m15a/

WIP

#Recent activities

Nix is a great tool to build package and environment in purely functional way, and I enjoy using it.

#Fennel projects

  • bump.fnl: a small CLI utility that bumps version string and/or auto updates headings including version and URLs in Markdown changelog.
  • fnldoc: a fork of Fenneldoc, which was sadly archived, with some bug fixes and new features. I'd like to express my huge appreciation to the original creator andreyorst.
  • vim-fennel-symtax: a fork of fennel.vim, which is inactive now. Again, I'd like to express my huge appreciation to the initiator of the original bakpakin and contributors.

#PureScript projects

  • purescript-choku: a Chalk binding library for decorating terminal texts easily. This is my first PureScript stuff.

~m15a/public-inbox

Last active 11 months ago
View more

Recent activity

Test mail 11 months ago

From NACAMURA Mitsuhiro to ~m15a/public-inbox

First mail!

-- 
NACAMURA Mitsuhiro

Re: todo.sr.ht bug: same tracker reference somehow reference another's tracker? 1 year, 15 days ago

From NACAMURA Mitsuhiro to ~sircmpwn/sr.ht-discuss

> The ticket that somehow referenced my ticket is
> <https://todo.sr.ht/~tsdh/highlight-parentheses.el/6>

Same here. One of my tickets is referenced from that ticket:
https://todo.sr.ht/~m15a/fnldoc/6

[PATCH fnlfmt] Fix --check option on PUC Lua 5.1 1 year, 1 month ago

From NACAMURA Mitsuhiro to ~technomancy/fennel

On PUC Lua 5.1, os.exit doesn't accept boolean.
---
On Mon, Mar 4, 2024 at 4:44 AM Phil Hagelberg <phil@hagelb.org> wrote:
> I didn't actually know that the os.exit function accepts a boolean; I
> thought it could only be called with a number.

My bad. On Lua 5.1 it fails.
LuaJIT, which extends os.exit according to Lua 5.2, and Lua >=5.2 are ok.

 cli.fnl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cli.fnl b/cli.fnl
index 069a2f0..504fb6c 100644
[message trimmed]

Re: [PATCH fnlfmt v2] Add option --check to check if files are formatted 1 year, 1 month ago

From NACAMURA Mitsuhiro to ~technomancy/fennel

> I've applied the patch and pushed it out.

Thank you for merging, and sorry for messing up the commit log with my
dirty reply text.
I'll write up replies after `---` next time!

[PATCH fnlfmt v2] Add option --check to check if files are formatted 1 year, 1 month ago

From NACAMURA Mitsuhiro to ~technomancy/fennel

On Sun, Mar 3, 2024 at 2:48 AM Phil Hagelberg <phil@hagelb.org> wrote:

> > +(fn check-files [filenames]
> > +  (let [ok? (accumulate [ok? true _ filename (pairs filenames)]
> > +              (and ok? (check-file filename)))]
> > +    (if ok?
> > +        (do
> > +          (io.stderr:write "All files are formatted.\n")
> > +          (os.exit true))
> > +        (os.exit false))))

> I think the `accumulate' is probably not necessary, since the failing
> branch exits already. Why not just a normal `each' over `check-file'
> similar to the `fix' loop? Moving the `os.exit' into `check-file' would
[message trimmed]

[PATCH fnlfmt] Add option --check to check if files are formatted 1 year, 1 month ago

From NACAMURA Mitsuhiro to ~technomancy/fennel

---
Hello!
This patch enables fnlfmt CLI to only check files are formatted.
I make this change as it could be convenient when using fnlfmt in CI.

 README.md |  1 +
 cli.fnl   | 27 +++++++++++++++++++++++----
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index c69fdff..f1433fe 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@ Format your Fennel!
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 1 year, 1 month ago

From NACAMURA Mitsuhiro to ~sircmpwn/email-test-drive

---
 m15a | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 m15a

diff --git a/m15a b/m15a
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/m15a
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.42.0
[message trimmed]