Skip to content

Commit

Permalink
Merge pull request #4 from Lemmih/master
Browse files Browse the repository at this point in the history
Fix build error.
  • Loading branch information
timjb committed Feb 3, 2015
2 parents dccf24b + 013ec39 commit ac134c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Aeson/Schema/CodeGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ generateArray name schema = case schemaItems schema of
-> CodeGenM SchemaTypes (TypeQ, ExpQ, ExpQ)
tupleArray items additionalItems = return (tupleType, code $ additionalCheckers ++ [noBindS tupleParser], tupleTo)
where
items' = flip map (zip [0..] items) $ \(i, (itemType, itemParser, itemTo)) ->
items' = flip map (zip [0::Int ..] items) $ \(i, (itemType, itemParser, itemTo)) ->
let simpleParser = [| $(itemParser) (V.unsafeIndex $(varE arr) i) |]
in if i < schemaMinItems schema
then (itemType, simpleParser, [| return . $itemTo |])
Expand Down

0 comments on commit ac134c0

Please sign in to comment.