packages feed

gotta-go-fast 0.3.0.6 → 0.3.0.7

raw patch · 3 files changed

+6/−5 lines, 3 filesdep ~word-wrap

Dependency ranges changed: word-wrap

Files

details.txt view
@@ -1,4 +1,4 @@-gotta-go-fast has three modes of operation. In all three modes, type through the presented text and then submit with ENTER. You MUST correct your mistakes before you can submit. Press ESC at any time to restart.+gotta-go-fast has three modes of operation. In all three modes, type through the presented text and then submit with ENTER. You MUST correct your mistakes before you can submit. Press ESC at any time to restart. Exit with CTRL-C.  1. NONSENSE MODE Run with no file inputs, it will generate nonsense which is statistically similar to English text. Words appear in the nonsense with the same frequency that they appear in actual English. The length of the nonsense can be specified with --nonsense-len (-l) (in characters). 
gotta-go-fast.cabal view
@@ -1,5 +1,5 @@ name:                gotta-go-fast-version:             0.3.0.6+version:             0.3.0.7 synopsis:            A command line utility for practicing typing description:   A command line utility for practicing typing and measuring your WPM and accuracy. See the project <https://github.com/callum-oakley/gotta-go-fast/blob/master/README.md README> for details.@@ -22,7 +22,7 @@   ghc-options:         -threaded   build-depends:       base >=4.7 && <5                      , brick >= 0.21-                     , word-wrap >= 0.4.1+                     , word-wrap >= 0.5                      , text                      , cmdargs                      , directory
src/Main.hs view
@@ -15,7 +15,8 @@                                          typ, (&=)) import           System.Directory       (doesFileExist) import           System.Random          (randomRIO)-import           Text.Wrap              (WrapSettings (..), wrapText)+import           Text.Wrap              (WrapSettings (..), defaultWrapSettings,+                                         wrapText)  import           UI                     (run) @@ -87,7 +88,7 @@ wrap :: Int -> String -> String wrap width = T.unpack . wrapText wrapSettings width . T.pack -wrapSettings = WrapSettings {preserveIndentation = True, breakLongWords = True}+wrapSettings = defaultWrapSettings {preserveIndentation = True, breakLongWords = True}  -- wordWeights.txt is taken from -- https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists#TV_and_movie_scripts