Hi,

could you send me the Haskell source for the 'getItem' defn
that Hugs chokes on? I'm reasonably certain that it is due
to a 0.16 HDirect bug, but want to make sure.

A post-0.16 dev snapshot of HDirect's ihc.exe can be found at

  http://www.dcs.gla.ac.uk/~sof/ihc.zip

If it doesn't fix your troubles, please let me know.

thanks
--sigbjorn

Toby Watson <[EMAIL PROTECTED]> writes:
> 
> Hi,
> 
> I'd like to use HaskellScript in ASPs (on the severside). 
> I've been unable
> to find library files for the objects in asp.dll, or make one 
> myself. Can
> anyone help me?
> 
> Cheers,
> Toby
> 
> more........
> 
> The paper, 'Domain Specific Embedded Compilers'  there is a 
> code snippet :
> 
> <%@ Language=HaskellScript %>
> <%
> 
> module Main where
> 
> import Asp
> import HtmlWizard
> 
> ...
> 
> %>
> 
> I can't find any Asp library files in HaskellScript, Hugs98, 
> HaskellDirect
> or Haskell/DB.
> 
> I've tried to make my own - (from a previous dicussion):
> 
> I've been trying to use HaskellScript in ASPs. Ideally I'd 
> like to have IIS
> 4.0, with HaskellScript, & HaskellDB.
> 
> I've installed may98hugs
> HaskellScript (build 11)
> HaskellDirect (0.16)
> 
> The demo simple.html from HaskellScript works.
> 
> I can make a simple testHaskell.asp page like this:
> 
> <%@ Language="HaskellScript" %>
> <%
>     main = putStr "Hello, World"
> %>
> 
> This runs with no errors, but produces no output! I know that 
> HaskellScript
> is being used because if I deliberately introduce an error I 
> get the message
> :
> 
> The problem seems to be that writing to the web server output requires
> access to the Response COM object so that you can make calls 
> equivalent to
> Response.Write( 'Hello, World' ) in VBScript.
> 
> Next I investigated using HaskellScript to produce bindings 
> for the COM
> objects used is ASPs. These are in asp.dll.
> 
> I've edited the Makefile for examples/comcli to point at the 
> file asp.dll in
> \winnt\system32\inetsrv\asp.dll which contains Response and other ASP
> objects like Request & Session.
> 
> bash-2.02$ make stubs
> ../../ihc --tlb -fautomation -fignore-source-interfaces 
> -fno-qualified-insta
> nce-
> methods    -c c:/winnt/system32/inetsrv/asp.dll -o Asp.hs
> bash-2.02$
> 
> Reading file "D:\HaskellDirect\0.16\examples\asp\Asp.hs":
> Type checking
> ERROR "D:\HaskellDirect\0.16\examples\asp\Asp.hs" (line 108): 
> Cannot justify
> con
> straints in explicitly typed binding
> *** Expression    : getItem
> *** Type          : Variant a => a -> IVariantDictionary b -> IO c
> *** Given context : Variant a
> *** Constraints   : Variant c
> 
> 
> 
> 
> 
> 
> 

Reply via email to