From dab749a95673307029166d627a30d9580609a069 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 3 Sep 2015 20:41:00 +0000 Subject: [PATCH] PGF2.Expr fixes It needs to be listed in gf.cabal unsafePerformIO is only exported from System.IO.Unsafe, starting with ghc-7.8 --- gf.cabal | 2 +- src/runtime/haskell-bind/PGF2/Expr.hsc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gf.cabal b/gf.cabal index ac0a3a617..9b427afa6 100644 --- a/gf.cabal +++ b/gf.cabal @@ -133,7 +133,7 @@ Library if flag(c-runtime) exposed-modules: PGF2 - other-modules: PGF2.FFI + other-modules: PGF2.FFI PGF2.Expr GF.Interactive2 GF.Command.Commands2 hs-source-dirs: src/runtime/haskell-bind build-tools: hsc2hs diff --git a/src/runtime/haskell-bind/PGF2/Expr.hsc b/src/runtime/haskell-bind/PGF2/Expr.hsc index 6dc7dd161..93df74ff7 100644 --- a/src/runtime/haskell-bind/PGF2/Expr.hsc +++ b/src/runtime/haskell-bind/PGF2/Expr.hsc @@ -3,6 +3,7 @@ module PGF2.Expr where +import System.IO.Unsafe(unsafePerformIO) import Foreign import Foreign.C import qualified Text.PrettyPrint as PP