From 6e39157478b37fad032bd2b6d92bfab01fb06d0e Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Tue, 4 Jun 2024 09:53:12 -0700 Subject: [PATCH] Reorder features Also add a link to the CONTRIBUTING.md --- README.md | 30 ++++++++++++++++++------------ docs/introduction.md | 19 ++++++++++--------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 3477310..2446a0e 100644 --- a/README.md +++ b/README.md @@ -19,16 +19,9 @@ when source files change. ## Features -- Ghciwatch can [clear the screen between reloads](https://mercurytechnologies.github.io/ghciwatch/cli.html#--clear). -- Compilation errors can be written to a file with - [`--error-file`](https://mercurytechnologies.github.io/ghciwatch/cli.html#--error-file), - for compatibility with [ghcid's][ghcid] `--outputfile` option. -- Comments starting with `-- $>` [can be - evaluated](https://mercurytechnologies.github.io/ghciwatch/comment-evaluation.html) - in GHCi. - - Eval comments have access to the top-level bindings of the module they're - defined in, including unexported bindings. - - Multi-line eval comments are supported with `{- $> ... <$ -}`. +- GHCi output is displayed to the user as soon as it's printed. +- Ghciwatch can handle new modules, removed modules, or moved modules without a + hitch, so you don't need to manually restart it. - A variety of [lifecycle hooks](https://mercurytechnologies.github.io/ghciwatch/lifecycle-hooks.html) let you run Haskell code or shell commands on a variety of events. @@ -43,8 +36,16 @@ when source files change. globs](https://mercurytechnologies.github.io/ghciwatch/cli.html#--reload-glob) can be supplied to reload or restart the GHCi session when non-Haskell files (like templates or database schema definitions) change. -- Ghciwatch can handle new modules, removed modules, or moved modules without a - hitch, so you don't need to manually restart it. +- Ghciwatch can [clear the screen between reloads](https://mercurytechnologies.github.io/ghciwatch/cli.html#--clear). +- Compilation errors can be written to a file with + [`--error-file`](https://mercurytechnologies.github.io/ghciwatch/cli.html#--error-file), + for compatibility with [ghcid's][ghcid] `--outputfile` option. +- Comments starting with `-- $>` [can be + evaluated](https://mercurytechnologies.github.io/ghciwatch/comment-evaluation.html) + in GHCi. + - Eval comments have access to the top-level bindings of the module they're + defined in, including unexported bindings. + - Multi-line eval comments are supported with `{- $> ... <$ -}`. [ghcid]: https://github.com/ndmitchell/ghcid [hpack]: https://github.com/sol/hpack @@ -54,3 +55,8 @@ when source files change. Check out a quick demo to see how ghciwatch feels in practice: + +## Developing ghciwatch + +See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for information on hacking +ghciwatch. diff --git a/docs/introduction.md b/docs/introduction.md index c6bba93..36502dc 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -7,14 +7,8 @@ when source files change. ## Features -- Ghciwatch can [clear the screen between reloads](cli.md#--clear). -- Compilation errors can be written to a file with [`--error-file`](cli.md#--error-file), for - compatibility with [ghcid's][ghcid] `--outputfile` option. -- Comments starting with `-- $>` [can be evaluated](comment-evaluation.md) in - GHCi. - - Eval comments have access to the top-level bindings of the module they're - defined in, including unexported bindings. - - Multi-line eval comments are supported with `{- $> ... <$ -}`. +- GHCi output is displayed to the user as soon as it's printed. +- Ghciwatch can handle new modules, removed modules, or moved modules without a - A variety of [lifecycle hooks](lifecycle-hooks.md) let you run Haskell code or shell commands on a variety of events. - Run a test suite with [`--test-ghci @@ -26,8 +20,15 @@ when source files change. - [Custom globs](cli.md#--reload-glob) can be supplied to reload or restart the GHCi session when non-Haskell files (like templates or database schema definitions) change. -- Ghciwatch can handle new modules, removed modules, or moved modules without a hitch, so you don't need to manually restart it. +- Ghciwatch can [clear the screen between reloads](cli.md#--clear). +- Compilation errors can be written to a file with [`--error-file`](cli.md#--error-file), for + compatibility with [ghcid's][ghcid] `--outputfile` option. +- Comments starting with `-- $>` [can be evaluated](comment-evaluation.md) in + GHCi. + - Eval comments have access to the top-level bindings of the module they're + defined in, including unexported bindings. + - Multi-line eval comments are supported with `{- $> ... <$ -}`. [ghcid]: https://github.com/ndmitchell/ghcid [hpack]: https://github.com/sol/hpack