1. Bryan O'Sullivan
  2. attoparsec
  3. Pull requests

Pull requests

#3 Merged
Repository
jmillikin
Branch
default
Repository
bos
Branch
default

Fix attoparsec 0.10 build in GHC 6.10

Author
  1. John Millikin
Reviewers
Description

attoparsec 0.10 fails to build in GHC 6.10:

[ 2 of 17] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/build/Data/Attoparsec/Internal/Types.o )

Data/Attoparsec/Internal/Types.hs:205:4:
    `many' is not a (visible) method of class `Alternative'

Data/Attoparsec/Internal/Types.hs:210:4:
    `some' is not a (visible) method of class `Alternative'
[ 7 of 17] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/build/Data/Attoparsec/Combinator.o )

Data/Attoparsec/Combinator.hs:64:24: Not in scope: `many'

The functions many and some are not methods of class Alternative in base <= 4.1. Since they are defined as an optimization, it is safe to guard the definitions in a version check on base.

Comments (1)

  1. John Millikin author

    Sorry, the markup got mangled there. Trying again:

    ---

    Attoparsec 0.10 fails to build in GHC 6.10:

    [ 2 of 17] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/build/Data/Attoparsec/Internal/Types.o )
    Data/Attoparsec/Internal/Types.hs:205:4: `many' is not a (visible) method of class `Alternative'
    Data/Attoparsec/Internal/Types.hs:210:4: `some' is not a (visible) method of class `Alternative'
    
    [ 7 of 17] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/build/Data/Attoparsec/Combinator.o )
    Data/Attoparsec/Combinator.hs:64:24: Not in scope: `many'
    

    The functions many and some are not methods of class Alternative in base <= 4.1. Since they are defined as an optimization, it is safe to guard the definitions in a version check on base.