Skip to content

Commit 70b54d5

Browse files
committed
Zig Re-write
1 parent 02e22f9 commit 70b54d5

26 files changed

Lines changed: 20 additions & 494 deletions

File tree

.gitignore

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,16 @@ cabal.sandbox.config
1616
*.aux
1717
*.hp
1818
*.eventlog
19-
.stack-work/
20-
cabal.project.local
21-
cabal.project.local~
22-
.HTF/
2319
.ghc.environment.*
20+
2421
test/test.exe
2522
test/test.hi
2623
test/test.o
27-
code.txt
2824
test/stack.yaml.lock
2925
test/app/test.exe
3026

31-
re-write/.zig-cache/
32-
re-write/zig-out/
27+
.zig-cache/
28+
zig-out/
3329
test/Haskell/app/test.exe
3430
test/Haskell/app/test.hi
3531
test/Haskell/app/test.o

HaskMate.cabal

Lines changed: 0 additions & 30 deletions
This file was deleted.

Images/img.png

-21.6 KB
Binary file not shown.

Images/intro.gif

-17.1 MB
Binary file not shown.
File renamed without changes.

re-write/README.md renamed to README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Zippy: fast feedback for Haskell
1+
# Zippy: A file-watching CLI for faster edit–build–run loops
22

3-
Zippy is a lightweight Zig-built CLI that watches a single Haskell source file and reruns your command the moment you save. It keeps your stdout clean, logs to stderr with levels, and stays out of your way during the edit–compile–run loop.
3+
Zippy is a lightweight Zig-built CLI that watches a file or directory and reruns your command the moment you save. It keeps your stdout clean, logs to stderr with levels, and stays out of your way during the edit–build–run loop.
44

55
## Quick start
66

77
```bash
88
# Run from source (Linux/Arch):
99
make build
10-
zig build run -- path/to/Main.hs
10+
zig build run -- path/to/file-or-dir
1111

1212
# Install it globally
13-
make install # /usr/local on Linux | %LOCALAPPDATA%/Programs/zippy on Windows
14-
make install PREFIX=$HOME/.local # user-local
13+
sudo make install # /usr/local on Linux | %LOCALAPPDATA%/Programs/zippy on Windows
14+
sudo make install PREFIX=$HOME/.local # user-local
1515

1616
# Run zippy!
17-
zippy ./Main.hs
17+
zippy ./path
1818
```
1919

2020
## Configuration
@@ -25,8 +25,8 @@ Zippy loads `Zippy.json` from the current working directory:
2525
{
2626
"delay": 1000000,
2727
"ignore": [],
28-
"cmd": "stack ghc {file} && ./test"
29-
-- OR --
28+
"cmd": "make && ./build/out"
29+
// OR
3030
"cmd": "node index.js"
3131
}
3232
```
@@ -52,9 +52,10 @@ Generate a starter config: `zippy --generate`.
5252

5353
```text
5454
2026-02-06 16:22:11.104 [INFO] Zippy Starting Zippy v1.3.0
55-
2026-02-06 16:22:11.105 [INFO] Zippy Watching: /home/user/project/app/Main.hs
56-
2026-02-06 16:22:13.412 [INFO] Zippy Running: stack ghc -- /home/user/project/app/Main.hs && ./app/Main
55+
2026-02-06 16:22:11.105 [INFO] Zippy Watching: /home/user/project/src
56+
2026-02-06 16:22:13.412 [INFO] Zippy Running: make && ./build/out
5757
2026-02-06 16:22:17.998 [WARN] Zippy File changed; re-running command…
58+
Your program output here...
5859
```
5960

6061
## Build & install
@@ -63,7 +64,7 @@ Prereqs: Zig 0.15.2+
6364

6465
- Linux/Arch (native):
6566
- `make build`
66-
- `make install` (defaults to `/usr/local`; override with `PREFIX=/path`)
67+
- `sudo make install` (defaults to `/usr/local`; override with `PREFIX=/path`)
6768
- Windows cross (from Linux host):
6869
- `make build-windows`
6970
- `make install PREFIX="$LOCALAPPDATA/Programs/zippy"`

app/Commands.hs

Lines changed: 0 additions & 103 deletions
This file was deleted.

app/Generate.hs

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/HaskMate.hs

Lines changed: 0 additions & 105 deletions
This file was deleted.

app/Settings.hs

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)