We would like to have tutorial-like examples in Iris, showcasing project features.
The proposed structure of the example:
Rename app directory to examples
Create a separate directory with an example name for each separate example.
Each example also should have a corresponding executable stanza in the iris.cabal file.
Current example should have name playground
Each example (except playground) should be written using markdown-unlit. The structure of an example:
README.md with the example content
Main.lhs as a symbolic link to the README
Possible examples:
[x] playground
[x] Simple grep: search lines containing substring in a given file, print coloured file name to stderr, lines numbers to stderr and with lines to stdout (to mimic the output of ripgrep)
This should be enough for the start but later we can add more examples 🙂
We would like to have tutorial-like examples in Iris, showcasing project features.
The proposed structure of the example:
app
directory toexamples
executable
stanza in theiris.cabal
file.playground
playground
) should be written using markdown-unlit. The structure of an example:README.md
with the example contentMain.lhs
as a symbolic link to the READMEPossible examples:
stderr
, lines numbers tostderr
and with lines tostdout
(to mimic the output ofripgrep
)This should be enough for the start but later we can add more examples 🙂