summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2015-09-03 20:41:00 +0000
committerhallgren <hallgren@chalmers.se>2015-09-03 20:41:00 +0000
commit829e1bbfd3671dc9f2f590f5ed05303a0f899c97 (patch)
tree8da7f4d6287bfe146af28a06172809bb76303b50
parent3328dd1f8dc784021e6bc0350cabc93b44b582c4 (diff)
PGF2.Expr fixes
It needs to be listed in gf.cabal unsafePerformIO is only exported from System.IO.Unsafe, starting with ghc-7.8
-rw-r--r--gf.cabal2
-rw-r--r--src/runtime/haskell-bind/PGF2/Expr.hsc1
2 files changed, 2 insertions, 1 deletions
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