ondrap / json-stream

Incremental applicative JSON Haskell parser
BSD 3-Clause "New" or "Revised" License
58 stars 13 forks source link

json-stream-0.3.2.0 can't compile its test suite #6

Closed peti closed 9 years ago

peti commented 9 years ago

Citing from http://hydra.cryp.to/build/1139733/log/raw:

test/ParserSpec.hs:336:7:
    Non type-variable argument
      in the constraint: Data.String.IsString [a]
    (Use FlexibleContexts to permit this)
    When checking that ‘isJson’ has the inferred type
      isJson :: forall a. (Eq a, Data.String.IsString [a]) => [a] -> Bool
    In an equation for ‘readBenchFiles’:
        readBenchFiles dirname
          = getDirectoryContents dirname >>= return . (filter isJson)
            >>= mapM readFile'
          where
              readFile' fname = BS.readFile (dirname ++ "/" ++ fname)
              isJson fname = take 5 (reverse fname) == "nosj."
ondrap commented 9 years ago

I have added a type to the test (this is the new behaviour of ghc 7.10). Tested it with 7.10 and runs ok, hopefully will run with you too.