Skip to content

Commit

Permalink
Use sequence over sequenceA to support GHC 7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Feb 1, 2016
1 parent baee645 commit f5eb094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Swagger/Operation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ operationsOf sub = paths.itraversed.withIndex.subops
methodsOf pathItem = partsOf template . itraversed . indices (`elem` ns) . _Just
where
ops = pathItem ^.. template :: [Maybe Operation]
ns = mapMaybe (fmap fst . sequenceA) $ zip [0..] ops
ns = mapMaybe (fmap fst . sequence) $ zip [0..] ops

-- | Apply tags to a part of Swagger spec and update the global
-- list of tags.
Expand Down

0 comments on commit f5eb094

Please sign in to comment.