Skip to content

Commit

Permalink
Use fmap instead of <$> so ghc 7.8 won't fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jan 20, 2016
1 parent 40bac3d commit e8af8d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Network/Gitit/Export.hs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ respondOrg = respondS "org" "text/plain; charset=utf-8" ""
#if MIN_VERSION_pandoc(1,16,0)
respondICML :: String -> Pandoc -> Handler
respondICML = respondX "icml" "application/xml; charset=utf-8" ""
(\o d -> UTF8.fromStringLazy <$> writeICML o d) defaultRespOptions
(\o d -> fmap UTF8.fromStringLazy $ writeICML o d)
defaultRespOptions
#else
respondICML = respondS "icml" "application/xml; charset=utf-8" ""
writeICML defaultRespOptions
Expand Down

0 comments on commit e8af8d8

Please sign in to comment.