diff options
author | joe <joe@jerkface.net> | 2016-04-27 23:53:12 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2016-04-27 23:53:12 -0400 |
commit | 368ae2d134ceb7ffbc3a5b1696574e7eb4d3e3d8 (patch) | |
tree | faffb269ae644d1809f977546503552a07591519 | |
parent | 94763e1e7928377ddc935bed497575c5df4941fb (diff) |
fixed Prelude.!! crash.
-rw-r--r-- | cokiki.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,7 @@ configureTor uid root cmn = whenRoot uid root cmn $ do | |||
176 | $ (==p) . word 1 . concat . take 1 | 176 | $ (==p) . word 1 . concat . take 1 |
177 | 177 | ||
178 | word :: Int -> [L.ByteString] -> L.ByteString | 178 | word :: Int -> [L.ByteString] -> L.ByteString |
179 | word n toks = words !! n | 179 | word n toks = L.concat $ take 1 $ drop n words |
180 | where | 180 | where |
181 | words = filter (not . L8.any isSpace . L8.take 1) | 181 | words = filter (not . L8.any isSpace . L8.take 1) |
182 | toks | 182 | toks |