Commit ee7caf27 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

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

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

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

This doesn't happen on Squeeze. Explicitly importing attoparsec in THH
fixes the problem.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent eb577716
...@@ -71,6 +71,8 @@ module Ganeti.THH ( declareSADT ...@@ -71,6 +71,8 @@ module Ganeti.THH ( declareSADT
import Control.Arrow ((&&&)) import Control.Arrow ((&&&))
import Control.Applicative import Control.Applicative
import Control.Monad import Control.Monad
import Data.Attoparsec () -- Needed to prevent spurious GHC 7.4 linking errors.
-- See issue #683 and
import Data.Char import Data.Char
import Data.List import Data.List
import Data.Maybe 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