on master help sign in
this patch fix the 'not in scope: resource' error when the devel server compiles code, tested on ghc 7.2.2
commit684668f2386363ec31781202eb671c39a8c4b8e1 authorJinjing Wang <nfjinjing@gmail.com> dateThu 24 May 2012, 22:03 (14 years ago) parent2266b04
1 file changed+1−1
wai-handler-devel/Network/Wai/Handler/DevelServer.hs+1−1
wai-handler-devel/Network/Wai/Handler/DevelServer.hs+1−1
@@ -190,7 +190,7 @@ theapp modu func =
190190 runInterpreter $ do
191191 loadModules [modu]
192192 mods <- getLoadedModules
193− setImports ["Prelude", "Network.Wai", "Data.Enumerator", "Data.ByteString.Internal", modu]
193+ setImports ["Prelude", "Network.Wai", "Data.Enumerator", "Data.ByteString.Internal", "Control.Monad.Trans.Resource", modu]
194194 app <- interpret func infer
195195 return (app, map toFile mods)
196196 where