packages feed

lentil 0.1.1.0 → 0.1.1.1

raw patch · 6 files changed

+52/−66 lines, 6 files

Files

changes.txt view
@@ -1,3 +1,9 @@+0.1.1.1+-------++- Released Fri 12 Jun 2015 12:44:18 CEST+- fixed a broken test (reported by Peter Simons)+ 0.1.1.0 ------- 
issues.txt view
@@ -1,78 +1,58 @@ doc/dev/issues.txt-     8  from String to Text? [feature:advanced]-    10  colorise output on regexps? [feature:advanced]-    11  allow different markups [feature:advanced]-    12  recognize module names [feature:advanced]-    13  have stuff linked to haskell-platform friendly e non template+    10  from String to Text? [feature:advanced]+    11  colorise output on regexps? [feature:advanced]+    12  allow different markups [feature:advanced]+    13  recognize module names [feature:advanced]+    14  have stuff linked to haskell-platform friendly e non template         haskell and stuff [feature:intermediate]-    15  html report, come hlint [feature:advanced]-    16  symlinks? [feature:intermediate]-    17  le ricerche è meglio che siano case unsensitive [feature:basic]-    18  check --output pretty, there are trailing white spaces [bug] [u:1]-    19  parser crash on non new line terminated file? [bug] [u:3]+    16  html report, come hlint [feature:advanced]+    17  symlinks? [feature:intermediate]+    18  le ricerche è meglio che siano case unsensitive [feature:basic]+    19  check --output pretty, there are trailing white spaces [bug] [u:1]     20  test con 7.6.3 [feature:basic] [test]     21  todo/fixmes in different sections [request] [u:3]   src/Lentil.hs-     1  compile with O2? [refactor]-    12  1st line todo is not recognised [bug]-    21  clean these nested ifs up [lint]+    13  compile with O2? [refactor]+    36  clean these nested ifs up [lint]   src/Lentil/Args.hs-    21  show help option in lentil short help [feature:intermediate]-    23  disambiguation optparse-applicative [feature:intermediate]-    24  help as lentil PATH [ PATH... ] [ OPTIONS ] [feature:intermediate]-    51  uncomment and implement sorting [feature:intermediate]+    23  show help option in lentil short help [feature:intermediate]+    24  disambiguation optparse-applicative [feature:intermediate]+    25  help as lentil PATH [ PATH... ] [ OPTIONS ] [feature:intermediate]+    90  uncomment and implement sorting [feature:intermediate]   src/Lentil/File.hs-    41  combine funziona su windows? [feature:intermediate]+    49  combine funziona su windows? [feature:intermediate]   src/Lentil/Parse/Issue.hs-     8  eliminate lookahead? fai il parser davvero da bottom up senza sub+    26  eliminate lookahead? fai il parser davvero da bottom up senza sub         parsing [lint] [refactor]-    26  streamline parser, indentation doesn't matter now [refactor] [u:3]-    27  last line non ce la fa se non c'è un "\n" [bug] [u:3]-    28  make syntax more flexyble (anche todo babaabab) [bug] [u:2]-    29  bug qk_apostrophe : if holdingshift then paste:='"' else-        paste:=''''; [bug] [request] [u:3]-    31  Text instead of String, for utf8 goodness [bug] [input]-    32  a naked todo should not be recognized an an issue [test]-    33  handle parsing errors gracefully (not it explodes) (vedi-        lentilfail) [bug]-    35  e che fare quando il todo segue un * come nei commenti lunghi c?-        [bug]-    62  add this to (ciString ancillaries?) [refactor]-    71  add blankline to ancillaries? [lint]-   109  lint `incipit`© [lint]-   117  allow tags in before description? [doc] [design]-   142  rimuovi tutti gli eof, oramai non servono [refactor]-   185  partial pattern! [bug] [refactor] [lint]-   189  deduplicate runparsource+    28  e che fare quando il todo segue un * come nei commenti lunghi c?+        [design]+    56  add this to (ciString ancillaries?) [refactor]+    67  add blankline to ancillaries? [lint]+   110  allow tags in before description? [doc] [design]+   141  rimuovi tutti gli eof, oramai non servono [refactor]+   165  partial pattern! [refactor] [lint]+   180  deduplicate runparsource [lint] [refactor]   src/Lentil/Parse/Source.hs-    38  ++ "\n" is inefficient [lint] [refactor]-    56  fallo diventare string così non impazzisci nelle altre parti-    78  lint program parser [lint]-    84  manyTill1 broken? occhio che al primon on chiama ed! [test]-    98  add signatore to sources & tests [lint] [test]-   110  add more langparsers [feature:intermediate]-   112  fallo che sia estensibile e leggibile a compilazione [design] [u:3]- -src/Lentil/Print.hs-    41  choose report width (test senza tag)+    41  ++ "\n" is inefficient [lint] [refactor]+    62  fallo diventare string così non impazzisci nelle altre parti+        [refactor]+    83  lint program parser [lint]+    87  manyTill1 broken? occhio che al primon on chiama ed! [test]+   102  ugly parens [lint] [refactor]+   115  add more langparsers [feature:intermediate]+   116  fallo che sia estensibile e leggibile a compilazione [design] [u:3]+   155  ugly hack to allow tODOs to be parseable even in first line. This+        is coupled with another hack in parser `issue` (another module).+        [refactor] [lint] [duct]   src/Lentil/Query.hs-     8  filtering case unsensitive? [test]+    21  filtering case unsensitive? [test]   test/Lentil/ArgsSpec.hs-    10  can't test lOpts, need to make a runner and a validator on the+    12  can't test lOpts, need to make a runner and a validator on the         output from io [test]- -test/Lentil/Parse/IssueSpec.hs-    43  eof blankline, ma non c'è sempre un \n in blanklines? [test]- -test/test-files/lang-comm/blocks.txt-     3  issue one [t] [q:f]-     5  issue two-    11  issue three [a]-    16  issue four
lentil.cabal view
@@ -1,5 +1,5 @@ name:                lentil-version:             0.1.1.0+version:             0.1.1.1 synopsis:            frugal issue tracker description:         minumum effort, cohesive issue tracker based on                      ubiquitous @TODO@s and @FIXME@s conventions.@@ -12,7 +12,7 @@ copyright:           © 2015 Francesco Ariis category:            Development build-type:          Simple-tested-with:         GHC==7.10.1+tested-with:         GHC==7.10.1, GHC==7.8.3 extra-source-files:  test/test-files/lang-comm/clang.c,                      test/test-files/lang-comm/haskell.hs,                      test/test-files/lang-comm/javascript.js,
src/Lentil.hs view
@@ -28,12 +28,11 @@                                    short 'v'      <>                                    help "show version and copyright info" )     where-          versionCopy = "lentil - a frugal issue tracker, version 0.1.1.0\n\+          versionCopy = "lentil - a frugal issue tracker, version 0.1.1.1\n\                         \(C) 2015 Francesco Ariis - http://www.ariis.it\n\                         \released under the GNU General Public License 3"  --- TODO: clean these nested ifs up [lint] runLentil :: LOptions -> IO () runLentil lo = uncurry findIssues (loInExcl lo) >>= \is -> -- grab issues                let fil = filterAnd (loFilters lo) is       -- filtered
src/Lentil/Parse/Source.hs view
@@ -112,8 +112,7 @@ -- SYNTAXES -- -------------- --- TODO: add more langparsers [feature:intermediate]--- TODO: fallo che sia estensibile e leggibile+-- TODO: add langparsers che sia estensibile e leggibile --       a compilazione [design] [u:3]  langParser :: String -> Maybe (ParSource String)
test/Lentil/Parse/SourceSpec.hs view
@@ -28,8 +28,10 @@     it "behaves like manyTill on non-empty string" $       sp (manyTill1 anyChar newline) "foo\n" `shouldBe`       sp (manyTill anyChar newline) "foo\n"-    it "doesn't runtime crash on a empty string (instead returns [])" $-      sp (manyTill1 anyChar newline) "" `shouldBe` Just []+    it "fails on empty string (while manyTill does not)" $+      sp (manyTill1 anyChar newline) "\n" `shouldBe` Nothing+    it "where manyTill (without one) returns \"\"" $+      sp (manyTill anyChar newline) "\n" `shouldBe` Just ""    describe "lineComment" $ do     it "parses a line comment" $