Commit graph

4 commits

Author SHA1 Message Date
YetAnotherMinion
ee7ce47f48
feat: starmelon reads files or stdin 2025-11-23 19:34:16 -08:00
YetAnotherMinion
287e59c566
refactor: replace unwraps with errors 2025-11-23 19:34:16 -08:00
YetAnotherMinion
601137dd16
feat: start to report errors instead of panicing 2025-11-23 19:34:16 -08:00
YetAnotherMinion
f7aff7585d
feat: unix adaptor for elm called starmelon
Introduce starmelon, a program for executing elm functions with input
from files and writing the output back to files.

Support evaluating 4 types of values and 12 types of functions.
```elm
x : String
x : Bytes
x : VirtualDom.Node msg
x : Json.Encode.Value

f : String -> String
f : String -> Bytes
f : String -> VirtualDom.Node msg
f : String -> Json.Encode.Value
f : Bytes -> String
f : Bytes -> Bytes
f : Bytes -> VirtualDom.Node msg
f : Bytes -> Json.Encode.Value
f : Json.Encode.Value -> String
f : Json.Encode.Value -> Bytes
f : Json.Encode.Value -> VirtualDom.Node msg
f : Json.Encode.Value -> Json.Encode.Value
```

My target use case for starmelon is generating html files. It is nice
to be able to write parameterized framgents of markup in multiple
modules and then compose them into a final value. I also have in mind
attempting to replace helm (kubernetes pacakge manager) because I hate
how error prone its string based templating language is.
2025-11-23 19:34:16 -08:00