git.wincent.com
/
docvim.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9023451
)
Fix style by camel-casing
author
Greg Hurrell <greg@hurrell.net>
Sat, 11 Jun 2016 05:09:48 +0000
(22:09 -0700)
committer
Greg Hurrell <greg@hurrell.net>
Sat, 11 Jun 2016 05:10:38 +0000
(22:10 -0700)
lib/Text/Docvim/Visitor.hs
patch
|
blob
|
history
diff --git
a/lib/Text/Docvim/Visitor.hs
b/lib/Text/Docvim/Visitor.hs
index ace5e0615522804c743c3a9f5208469b17e042e7..06e420f75fe489fcb156ec2df8e6f8dce4e9032f 100644
(file)
--- a/
lib/Text/Docvim/Visitor.hs
+++ b/
lib/Text/Docvim/Visitor.hs
@@
-39,9
+39,9
@@
extractBlocks :: Alternative f => (a -> Maybe (a -> Bool)) -> [a] -> (f [a], [a]
extractBlocks start = go
where
go [] = (empty, [])
- go (x:xs) = maybe no
_e
xtract extract' (start x)
+ go (x:xs) = maybe no
E
xtract extract' (start x)
where
- no
_e
xtract = (extracted, x:unextracted)
+ no
E
xtract = (extracted, x:unextracted)
where
~(extracted, unextracted) = go xs
extract' stop = (pure (x:block) <|> extracted, unextracted)