dmgolubovsky / yhc

Automatically exported from code.google.com/p/yhc
0 stars 0 forks source link

Compile failure in CoreJS.hs #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd src/translator/js
2. make HAPPY=happy 

What is the expected output? What do you see instead?

JS/CoreJS.hs:221:4:
    Couldn't match expected type `CoreExpr'
       against inferred type `CoreFunc'
    In the pattern: CorePrim "SEQ"
    In a case alternative:
    CorePrim "SEQ" -> return $ (JPrim "SEQ" args)
    In the expression:
    case f of
      CorePrim "SEQ" -> return $ (JPrim "SEQ" args)
      CorePrim prim -> return $ (JPrim prim forcedargs)
      CoreCon con
        -> return
         $ (case con of
          "2" -> JCall (JStr "new HSEOL") []
          "3" -> JCall (JStr "new HSCons") args
          other -> JCall (JStr "new HSData") [JStr con, JArray allwrap])
      CoreFun fn
        -> case args of
         [] -> return fun
         _ -> do let ...
             ...
      _ -> return $ (JMethod "_ap" fun [JArray allwrap])
make[1]: *** [/home/david/yhc/src/translator/js/inst/bin/ycr2js] Error 1

What version of the product are you using? On what operating system?

Darcs pull on 5/19/2007

Please provide any additional information below.

Original issue reported on code.google.com by dds...@gmail.com on 19 May 2007 at 5:52

GoogleCodeExporter commented 9 years ago
This relates to the CorePrim/CoreFunc change that I recently made to Yhc.Core.
Dimitry is unavailable at the moment, but I'm sure he'll fix this up once he 
comes
back to Ycr2js

Original comment by ndmitch...@gmail.com on 19 May 2007 at 6:05

GoogleCodeExporter commented 9 years ago
Ah, I see it now: http://www.haskell.org/pipermail/yhc/2007-May/000860.html

Original comment by dds...@gmail.com on 19 May 2007 at 8:52

GoogleCodeExporter commented 9 years ago
This must be fixed by now.

Original comment by golubov...@gmail.com on 4 Feb 2008 at 5:41