packages feed

hsp 0.6.0 → 0.6.1

raw patch · 2 files changed

+4/−4 lines, 2 files

Files

hsp.cabal view
@@ -1,5 +1,5 @@ Name:                   hsp-Version:                0.6.0+Version:                0.6.1 License:                BSD3 License-File:           LICENSE Author:                 Niklas Broberg, Joel Bjornson@@ -18,7 +18,7 @@                         * A cgi-handler utility (as a separate package, hsp-cgi)                         .                         For details on usage, please see the website, and the author's thesis.-Homepage:               http://code.google.com/p/hsp+Homepage:               http://code.haskell.org/HSP/hsp Build-Type:             Simple Cabal-Version:          >= 1.2.3 Tested-With:            GHC==6.8.3, GHC==6.10, GHC==7.0.2
src/HSP/HJScript.hs view
@@ -24,8 +24,8 @@ instance Monad m => IsAttrValue m (HJScript (Exp t)) where
   toAttrValue script = toAttrValue $ evaluateHJScript script
 
-scriptAsChild :: (EmbedAsChild m String) => HJScript () -> XMLGenT m [HSX.Child m]
-scriptAsChild script = asChild $ show $ snd $ evalHJScript script
+scriptAsChild :: (EmbedAsChild m (Block ())) => HJScript () -> XMLGenT m [HSX.Child m]
+scriptAsChild script = asChild $ snd $ evalHJScript script
 
 newGlobalVar :: HSP (Var t, Block ())
 newGlobalVar = do