<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:italic;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>Resolved my problems by going after later versions of ByteString:<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt;cabal install bytestring-0.9.2.0<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>Resolving dependencies...<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>cabal: bytestring.cabal:70: The 'type' field is required for test suites. The<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>available test types are: exitcode-stdio-1.0<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>cabal: Error: some packages failed to install:<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>bytestring-0.9.2.0 failed during the configure step. The exception was:<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>ExitFailure 1<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>That did not work, but the following:<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt;cabal install bytestring-0.9.1.10<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>Resolving dependencies...<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>No packages to be installed. All the requested packages are already installed.<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>If you want to reinstall anyway then use the --reinstall flag.<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>tells me that I already had a working version. I was chasing the wrong problem. <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>Looking at my BlazeHtml code again, there were imports declared as follows:<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Prelude hiding (head, id, div)<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Text.Blaze.Html4.Strict as H hiding (map)<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Text.Blaze.Html4.Strict.Attributes as A<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Control.Monad<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Data.Monoid (Monoid, mappend, mempty, mconcat)<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><i><span style='font-size:12.0pt;color:#1F497D'>&gt; import Text.Blaze.Renderer.Utf8 (renderHtml)<o:p></o:p></span></i></p><p class=MsoNormal style='margin-left:.5in'><b><i><span style='font-size:12.0pt;color:#1F497D'>&gt; &nbsp;import Data.ByteString.UTF8</span></i></b><i><span style='font-size:12.0pt;color:#1F497D'> as B<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>The last import was the problem. Something changed in the libraries to make this 'UTF8' line break. I worked around this for now.<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>Need to research some more, quick glance at the bytestring library versions&nbsp; suggest 'Char8' not 'UTF8' .&nbsp; However Data.ByteString.UTF8 is in the utf8-string-0.3 library (http://hackage.haskell.org/packages/archive/utf8-string/0.3/doc/html/Data-ByteString-UTF8.html).<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'>So my question becomes &quot;Can someone tell me if there are notes somewhere on the state of play of the UTF8 ByteString Libraries&quot;<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><div><p class=MsoNormal><span style='color:black'>Ralph Hodgson, <a href="http://twitter.com/ralphtq"><span style='color:black'>@ralphtq</span></a><o:p></o:p></span></p></div><p class=MsoNormal><i><span style='font-size:12.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></i></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] <b>On Behalf Of </b>Ralph Hodgson<br><b>Sent:</b> Saturday, October 01, 2011 8:31 PM<br><b>To:</b> haskell-cafe@haskell.org<br><b>Subject:</b> [Haskell-cafe] ByteString install issues with GHC 7.0.3 on Windows 7<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:12.0pt'>This morning I was successfully running BlazeHtml on Windows 7. Then I installed some libraries from other packages and BlazeHtml broke.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>I then decided to go from ghc 6.12.1 to ghc 7.0.3 and reinstall everything.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>BlazeHtml installed OK. But my program also needed ByteString. So I did the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>First I tried the stable version:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&gt;cabal install bytestring-0.9.1.4<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Resolving dependencies...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Configuring bytestring-0.9.1.4...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Preprocessing library bytestring-0.9.1.4...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Building bytestring-0.9.1.4...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Data\ByteString.hs:3:24:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp; Cannot parse LANGUAGE pragma<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp; Expecting comma-separated list of language options,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp; each starting with a capital letter<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E.g. {-# LANGUAGE RecordPuns, Generics #-}<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>cabal: Error: some packages failed to install:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>bytestring-0.9.1.4 failed during the building phase. The exception was:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>ExitFailure 1<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>I am not experienced enough to fix this, so I tried a previous ByteString version:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&gt;cabal install bytestring-0.9.1.3<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Resolving dependencies...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Configuring bytestring-0.9.1.3...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Preprocessing library bytestring-0.9.1.3...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Building bytestring-0.9.1.3...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>[1 of 8] Compiling Data.ByteString.Fusion ( Data\ByteString\Fusion.hs, dist\buil<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>d\Data\ByteString\Fusion.o )<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>[2 of 8] Compiling Data.ByteString.Internal ( Data\ByteString\Internal.hs, dist\<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>build\Data\ByteString\Internal.o )<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>Data\ByteString\Internal.hs:79:42:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>&nbsp;&nbsp;&nbsp; Module `GHC.IOBase' does not export `RawBuffer'<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>cabal: Error: some packages failed to install:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>bytestring-0.9.1.3 failed during the building phase. The exception was:<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'>ExitFailure 1<o:p></o:p></span></p><p class=MsoNormal style='margin-left:1.0in'><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>No joy.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>Help appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'>May try all this on my MAC tomorrow.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:black'>Ralph Hodgson, <a href="http://twitter.com/ralphtq"><span style='color:black'>@ralphtq</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Mobile Phone: +1 781-789-1664<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>