From b5b11f31a60da8456f313508ed61d8a133637e17 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sat, 28 Mar 2015 10:10:14 -0700
Subject: [PATCH] Fixed ghc-prof-options.

---
 pandoc.cabal | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pandoc.cabal b/pandoc.cabal
index 963982107..6e06ce34b 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -277,7 +277,7 @@ Library
   if os(windows)
     Cpp-options:      -D_WINDOWS
   Ghc-Options:   -rtsopts -Wall -fno-warn-unused-do-bind
-  Ghc-Prof-Options: -auto-exported -rtsopts
+  Ghc-Prof-Options: -fprof-auto-exported -rtsopts
   Default-Language: Haskell98
   Other-Extensions:   PatternGuards, OverloadedStrings,
                       ScopedTypeVariables, GeneralizedNewtypeDeriving,
@@ -379,7 +379,7 @@ Executable pandoc
   else
      Build-Depends: network >= 2 && < 2.6
   Ghc-Options:   -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind
-  Ghc-Prof-Options: -auto-exported -rtsopts -with-rtsopts=-K16m
+  Ghc-Prof-Options: -fprof-auto-exported -rtsopts -with-rtsopts=-K16m
   if os(windows)
     Cpp-options:      -D_WINDOWS
   Default-Language: Haskell98