Re: mkIfThenElse

2009-03-22 Thread Max Bolingbroke
2009/3/22 Colin Paul Adams : >> "Max" == Max Bolingbroke writes: > >    Max> It moved to MkCore > > Thanks. > > What about mkWildId from Id.lhs? That one seems to have vanished. Looks that might be the same deal (moved to MkCore), assuming this is what you wanted: -- | Make a /wildcard binde

Re: mkIfThenElse

2009-03-22 Thread Colin Paul Adams
> "Max" == Max Bolingbroke writes: Max> It moved to MkCore Thanks. What about mkWildId from Id.lhs? That one seems to have vanished. -- Colin Adams Preston Lancashire ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org ht

Re: mkIfThenElse

2009-03-22 Thread Max Bolingbroke
It moved to MkCore: mkIfThenElse :: CoreExpr -> CoreExpr -> CoreExpr -> CoreExpr mkIfThenElse guard then_expr else_expr -- Not going to be refining, so okay to take the type of the "then" clause = mkWildCase guard boolTy (exprType then_expr) [ (DataAlt falseDataCon, [], else_expr),

mkIfThenElse

2009-03-22 Thread Colin Paul Adams
This function has disappeard from CoreUtils in recent release(s). I am portfing some code which uses this function (just once). What should I be looking to use instead? -- Colin Adams Preston Lancashire ___ Glasgow-haskell-users mailing list Glasgow-hask

Re: How do I add new dependencies and source files into the build system?

2009-03-22 Thread Colin Paul Adams
> "Donnie" == Donnie Jones writes: Donnie> Hello Colin, I believe you should edit Donnie> compiler/ghc.cabal.in -- I believe this file is the input Donnie> for cabal and used to create the ghc.cabal which gets Donnie> re-created at ./configure. Donnie> Also, you may want

Re: How do I add new dependencies and source files into the build system?

2009-03-22 Thread Donnie Jones
Hello Colin, I believe you should edit compiler/ghc.cabal.in -- I believe this file is the input for cabal and used to create the ghc.cabal which gets re-created at ./configure. Also, you may want to look into Ways (compiler/main/StaticFlags.hs and mk/config.mk.in) if you plan on adding any compi

How do I add new dependencies and source files into the build system?

2009-03-22 Thread Colin Paul Adams
I have added a subdirectory named verify to the compiler directory, and made a change to simplCore to call functions from it. I have managed to get it to compile by editing ghc.cabal in the compiler directory (after some problems with cabal which are now sorted). But I think this is not the correc