Re: cpphs and hugs
Ian Lynagh <[email protected]> Thu, 30 Nov 2006 13:33:12 +0000
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 29, 2006 at 04:49:36PM +0000, Malcolm Wallace wrote: > Ian Lynagh <[email protected]> wrote: > > > $ /tmp/cpphs/inst/bin/cpphs /dev/null > > > > Program error: pattern match failure: macroProcess ((instEq_v4051 > > `elem` CpphsOption_CpphsLayout) []) Bool_True (preDefine > > ((instEq_v4051 `elem` CpphsOption_CpphsAnsi) []) Bool_True > > (runCpphs_v4067 [])) (tokenise_v3906 ((instEq_v4051 `elem` > > CpphsOption_CpphsAnsi) []) ((instEq_v4051 `elem` > > CpphsOption_CpphsStrip) []) SubMode_Any) $ > > I tried this with hugs-Sept2006 and could not reproduce the error. > Mystified. Oops, looked like I did that in the wrong window, using an ancient, buggy hugs. Sorry about that. > > I tried upgrading to 1.2 to see if it is fixed, and trying to haddock > > missingh then gave an almighty pattern match failure. > > Is there a more accessible mirror of MissingH anywhere? Sorry, I wasn't expecting you to need it as /dev/null looked like a good first test case. Here's a smaller testcase for the original problem, with hugs September 2006 and cpphs 1.2: $ runhugs -98 Setup.hs --hugs configure --prefix=/tmp/cpphs/inst $ runhugs -98 Setup.hs build $ runhugs -98 Setup.hs install $ export LC_ALL=POSIX $ printf "Bj\xf6rn Bringert" > foo $ /tmp/cpphs/inst/bin/cpphs foo Program error: <handle>: IO.getContents: protocol error (input contains non-character data - use binary I/O for binary data) $ Thanks Ian