To make it clear what is a capture, add a type synonym type Capture = String.
Or possibly even an opaque newtype. This could also make it easier to change
it to a data type in future, if we ever want to store more information in a capture
(e.g. a timestamp, what the terminal size was, etc).
To make it clear what is a capture, add a type synonym
type Capture = String
.Or possibly even an opaque newtype. This could also make it easier to change it to a data type in future, if we ever want to store more information in a capture (e.g. a timestamp, what the terminal size was, etc).