Skip to content

Dependency bound issues with attoparsec #75

@mniip

Description

@mniip

Almost every version of email-validate declares dependency on attoparsec >=0.10, however:

  • email-validate >=2.1.0 && <=2.1.1 fail to build against attoparsec <0.10.1:

    [1 of 2] Compiling Text.Email.Parser ( src/Text/Email/Parser.hs, dist/build/Text/Email/Parser.o )
    
    src/Text/Email/Parser.hs:33:13: error:
        Not in scope: data constructor ‘Fail’
        Perhaps you meant one of these:
          variable ‘fail’ (imported from Prelude),
          variable ‘tail’ (imported from Prelude),
          variable ‘BS.tail’ (imported from Data.ByteString.Char8)
       |
    33 |         go (Fail _ _ _) = []
       |             ^^^^
    
    src/Text/Email/Parser.hs:34:13: error:
        Not in scope: data constructor ‘Partial’
       |
    34 |         go (Partial f)  = go (f BS.empty)
       |             ^^^^^^^
    
    src/Text/Email/Parser.hs:35:13: error:
        Not in scope: data constructor ‘Done’
       |
    35 |         go (Done r adr) = [(adr, BS.unpack r)]
       |             ^^^^
    

    This was fixed in 9c3c449 which landed in email-validate-2.1.2, but email-validate >=2.1.0 && <=2.1.1 still need hackage revisions.

  • email-validate >=2.2.1 fail to build against attoparsec <0.12:

    src/Text/Email/Parser.hs:89:50: error:
        Variable not in scope:
          match
            :: attoparsec-0.11.3.4:Data.Attoparsec.Internal.Types.Parser
                 ByteString ()
               -> attoparsec-0.11.3.4:Data.Attoparsec.Internal.Types.Parser
                    ByteString (ByteString, b0)
       |
    89 |     content <- between1 (optional cfws) (fst <$> match (alphaNum >> skipWhile isAlphaNumHyphen))
       |                                                  ^^^^^
    

    This is still unfixed in git head. Notably, it seems hackage trustees have revised 2.2.1 and 2.2.1.1 to fix this. However email-validate >=2.3.1 still need revisions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions