Language nits

This commit is contained in:
Jonathan Daugherty 2021-11-13 17:35:52 -08:00
parent 8966495d47
commit 73fcdabe4a
2 changed files with 8 additions and 8 deletions

View File

@ -2,8 +2,8 @@
`brick` is a Haskell terminal user interface (TUI) programming toolkit.
To use it, you write a pure function that describes how your user
interface should look based on your current application state and you
provide a state transformation function to handle events.
interface should be drawn based on your current application state and
you provide a state transformation function to handle events.
`brick` exposes a declarative API. Unlike most GUI toolkits which
require you to write a long and tedious sequence of "create a widget,
@ -40,9 +40,9 @@ Result:
Featured Projects
-----------------
To get an idea of what some people have done with `brick`, take a look
at these projects. If you have made something and would like me to
include it, get in touch!
To get an idea of what some people have done with `brick`, check out
these projects. If you have made something and would like me to include
it, get in touch!
| Project | Description |
| ------- | ----------- |

View File

@ -21,7 +21,7 @@ The process of writing an application using ``brick`` entails writing
two important functions:
- A *drawing function* that turns your application state into a
specification of how your interface should look, and
specification of how your interface should be drawn, and
- An *event handler* that takes your application state and an input
event and decides whether to change the state or quit the program.
@ -334,7 +334,7 @@ define the counter event type:
With this type declaration we can now use counter events in our app by
using the application type ``App s CounterEvent n``. To handle these
events we'll just need to look for ``AppEvent`` values in the event
events we'll just need to check for ``AppEvent`` values in the event
handler:
.. code:: haskell
@ -1288,7 +1288,7 @@ the above work in a type-safe manner.
A Form Example
--------------
Let's look at an example data type that we'd want to use as the
Let's consider an example data type that we'd want to use as the
basis for an input interface. This example comes directly from the
``FormDemo.hs`` demonstration program.