diff --git a/apiary-purescript.cabal b/apiary-purescript.cabal
--- a/apiary-purescript.cabal
+++ b/apiary-purescript.cabal
@@ -1,5 +1,5 @@
 name:                apiary-purescript
-version:             1.3.1
+version:             1.3.2
 synopsis:            purescript compiler for apiary web framework.
 description:
   example: <https://github.com/philopon/apiary/blob/master/examples/pureScript.hs>
@@ -21,7 +21,8 @@
   other-modules:       Web.Apiary.PureScript.Internal
   build-depends:       base                 >=4.6   && <4.8
                      , apiary               >=1.2   && <1.4
-                     , purescript           >=0.6   && <0.7
+                     , purescript           >=0.6.8 && <0.7
+                     , transformers         >=0.3   && <0.5
 
                      , filepath             >=1.3   && <1.4
                      , text                 >=1.1   && <1.3
diff --git a/src/Web/Apiary/PureScript/Internal.hs b/src/Web/Apiary/PureScript/Internal.hs
--- a/src/Web/Apiary/PureScript/Internal.hs
+++ b/src/Web/Apiary/PureScript/Internal.hs
@@ -12,6 +12,7 @@
 import qualified Language.PureScript as P
 
 import Control.Monad.Apiary.Action(ActionT, contentType, appendString, appendBytes, string, bytes)
+import Control.Monad.Trans.Reader(runReaderT)
 import Control.Exception(Exception, throwIO, try)
 import Control.Applicative((<$>))
 
@@ -73,7 +74,7 @@
         >>= mapM (\f -> (f,) <$> readFile f) . (p:) . concat . fst
     case P.parseModulesFromFiles id $ ("prelude", P.prelude) : mods of
         Left l   -> throwIO (ParseError l)
-        Right ms -> case P.compile (pureScriptOptions opt) (map snd ms) (pureScriptPrefix opt) of
+        Right ms -> case runReaderT (P.compile (map snd ms) (pureScriptPrefix opt)) (pureScriptOptions opt) of
             Left l         -> throwIO (CompileError l)
             Right (js,_,_) -> return js
 
