This project is for testing this atom repo as local library.
- Clone this atom repo. Make the directory like this.
├──atom
└──atom-use-my-lib(this repo)
- Build the atom repo. See its README.md .
cd
to this repo directory andstack build
.stack run atom-use-my-lib-exe
. This will generateatom_use_my_code.c
andatom_use_my_code.h
.- Execute the
atom_use_my_code.c
. This will stdout:
on
hey
hey
hey
off
hey
hey
hey
hey
hey
on
hey
hey
hey
off
...
.
In my case:
Command | Version |
---|---|
GHCup | 0.1.30.0 |
Stack | 2.15.5 |
cabal | 3.10.3.0 |
GHC | 9.4.8 |