Commit ee7caf27 authored by Petr Pudlak's avatar Petr Pudlak

A workaround for GHC linking problem "unknown symbol ..."

GHC 7.4 on Debian Wheezy fails to compile after some TH related changes,
reporting

  ghc: src/Ganeti/JSON.o: unknown symbol
    `attoparseczm0zi11zi1zi0_DataziAttoparsecziText_zdwf_info`

This doesn't happen on Squeeze. Explicitly importing attoparsec in THH
fixes the problem.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent eb577716
......@@ -71,6 +71,8 @@ module Ganeti.THH ( declareSADT
import Control.Arrow ((&&&))
import Control.Applicative
import Control.Monad
import Data.Attoparsec () -- Needed to prevent spurious GHC 7.4 linking errors.
-- See issue #683 and https://ghc.haskell.org/trac/ghc/ticket/4899
import Data.Char
import Data.List
import Data.Maybe
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment