Permalink
Commits on Apr 20, 2018
  1. Use GHC 8.4.2 on Travis

    RyanGlScott committed Apr 20, 2018
Commits on Mar 15, 2018
Commits on Mar 13, 2018
  1. Allow doctest-0.15

    RyanGlScott committed Mar 13, 2018
Commits on Feb 13, 2018
  1. Allow doctest-0.14

    RyanGlScott committed Feb 13, 2018
Commits on Jan 15, 2018
  1. Further tweaks to #78

    RyanGlScott committed Jan 15, 2018
  2. Turn examples into a project (#78)

    bitemyapp authored and RyanGlScott committed Jan 15, 2018
    * Initial examples / RFC2616 cleanup
    
    * Old base doesn't have liftIO, add travis.yml run of the tests
    
    * Fix LICENSE copyright
Commits on Dec 27, 2017
  1. Allow ansi-terminal-0.8

    RyanGlScott committed Dec 27, 2017
Commits on Dec 14, 2017
  1. Merge pull request #79 from gwils/foldresult

    ekmett committed Dec 14, 2017
    Add foldResult
  2. Add foldResult

    gwils committed Dec 14, 2017
Commits on Nov 22, 2017
  1. .travis.yml oversight

    RyanGlScott committed Nov 22, 2017
  2. Use GHC 8.2.2 on Travis

    RyanGlScott committed Nov 22, 2017
Commits on Oct 18, 2017
  1. bump to version 2

    ekmett committed Oct 18, 2017
  2. Merge pull request #73 from quchen/master

    ekmett committed Oct 18, 2017
    Add documentation, tutorial module, and some minor cleanups
  3. Merge pull request #76 from fmthoma/rewrite_stepParser

    ekmett committed Oct 18, 2017
    Rewrite `stepParser` to remove the `ByteString` argument
  4. Merge pull request #75 from fmthoma/fix_stepParser

    ekmett committed Oct 18, 2017
    Apply the continuation to new input immediately
Commits on Aug 20, 2017
Commits on Aug 14, 2017
  1. Rewrite `stepParser` to remove the `ByteString` argument

    fmthoma committed Aug 14, 2017
    The initial `ByteString` was used as the initial value for the parser's current
    line of input. This led to problems with incremental parsing:
    
        > starve (feed "foo" (stepParser (                  many anyChar) mempty "bar"))
        Success "bar"
    
        > starve (feed "foo" (stepParser (release mempty *> many anyChar) mempty "bar"))
        Success "foo"
    
    The initial chunk of input *should* be obtained from the input itself, using
    `rewindIt` (that's basically what `release mempty` in the second example does).
    
    This is a breaking change, since we remove an argument from the `stepParser`
    function. However, client code usually relies on the more high-level
    `parseString`/`parseByteString`, so this should not have too much impact.
    
    Fixes #21.
  2. Apply the continuation to new input immediately

    fmthoma committed Aug 14, 2017
    Without `simplifyIt`, the continuation `k` is only applied when additional input
    is supplied, so the parser always hangs one `feed` step behind.
    
    Example of the problem:
    
        Prelude Text.Trifecta> starve (feed "e x" (feed "h" (stepParser (release mempty *>         some (notFollowedBy someSpace *> anyChar)  <* someSpace) mempty mempty)))
        Success "he"
    
        Prelude Text.Trifecta> starve (feed "e x" (feed "h" (stepParser (release mempty *> sliced (some (notFollowedBy someSpace *> anyChar)) <* someSpace) mempty mempty)))
        Success ""
    
    With this fix:
    
        Prelude Text.Trifecta> starve (feed "e x" (feed "h" (stepParser (release mempty *> sliced (some (notFollowedBy someSpace *> anyChar)) <* someSpace) mempty mempty)))
        Success "he"
    
    Fixes #49
Commits on Aug 13, 2017
  1. ByteString's `Show` instance changed from 0.9 to 0.10

    fmthoma committed Aug 13, 2017
    => convert to String first.
  2. Add some doctest import statements to make -fobject-code work

    fmthoma committed Aug 13, 2017
    The doctest for `wantIt` won't compile since it uses unboxed tuples, so we
    make doctest ignore it, but still include it in the documentation.
  3. Fix shadowing warning

    quchen authored and fmthoma committed Aug 6, 2017
  4. Docs & doctests for It

    fmthoma committed Aug 6, 2017
  5. Housekeeping

    quchen authored and fmthoma committed Aug 5, 2017