<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 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I’d like to make –XtemplateHaskell simply illegal in a stage-1 compiler. After all, it is!<o:p></o:p></p>
<p class="MsoNormal">But for some reason we use the stage1 compiler to generate dependencies for the DPH libraries; those libraries have {-# LANGUAGE TemplateHaskell #-}, so the dependency generation fails.  See below.<o:p></o:p></p>
<p class="MsoNormal">But WHY do we generate deps for DPH with stage1?  We don’t *<b>compile</b>* the DPH libraries with stage1, because they need TH.  Can’t we just generate deps with stage2?<o:p></o:p></p>
<p class="MsoNormal">For now I’ll make it a warning, but could someone fix the build system?<o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Simon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mv libraries/dph/dph-lifted-copy/dist-install/build/.depend-v-dyn.c_asm.tmp libraries/dph/dph-lifted-copy/dist-install/build/.depend-v-dyn.c_asm<o:p></o:p></p>
<p class="MsoNormal">"rm" -f libraries/dph/dph-lifted-copy/dist-install/build/.depend-v-dyn.haskell.tmp 
<o:p></o:p></p>
<p class="MsoNormal">"inplace/bin/ghc-stage1" -M -static  -H32m -O -Werror -Wall -H64m -O0    -package-name dph-lifted-copy-0.8.0.1 -hide-all-packages -i -ilibraries/dph/dph-lifted-copy/. -ilibraries/dph/dph-lifted-copy/dist-install/build -ilibraries/dph/dph-lifted-copy/dist-install/build/autogen
 -Ilibraries/dph/dph-lifted-copy/dist-install/build -Ilibraries/dph/dph-lifted-copy/dist-install/build/autogen -Ilibraries/dph/dph-lifted-copy/.    -optP-include -optPlibraries/dph/dph-lifted-copy/dist-install/build/autogen/cabal_macros.h -package array-0.5.0.0
 -package base-4.7.0.0 -package dph-base-0.8.0.1 -package dph-prim-par-0.8.0.1 -package ghc-7.7.20131106 -package random-1.0.1.1 -package template-haskell-2.9.0.0 -package vector-0.10.9.1 -Odph -funbox-strict-fields -fcpr-off -fno-warn-orphans -fno-warn-missing-signatures
 -XHaskell98 -XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash -XUnboxedTuples -XTypeOperators -O2 -O -dcore-lint -fno-warn-amp  -fno-warn-deprecated-flags -Wwarn  -no-user-package-db -rtsopts      -odir libraries/dph/dph-lifted-copy/dist-install/build
 -hidir libraries/dph/dph-lifted-copy/dist-install/build -stubdir libraries/dph/dph-lifted-copy/dist-install/build -dep-makefile libraries/dph/dph-lifted-copy/dist-install/build/.depend-v-dyn.haskell.tmp -dep-suffix "" -dep-suffix "dyn_" -include-pkg-deps 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/Closure.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/Combinators.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/PArray.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/Scalar.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/TH/Repr.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Lifted/Unboxed.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArr.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/Base.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/PData.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/PDataInstances.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/PRepr.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/PReprInstances.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/Scalar.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/ScalarInstances.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/PArray/Types.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Base.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Bool.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Double.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Float.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Int.hs 
 libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Tuple.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prelude/Word8.hs  libraries/dph/dph-lifted-copy/./Data/Array/Parallel/Prim.hs<o:p></o:p></p>
<p class="MsoNormal">ghc-stage1: libraries/dph/dph-lifted-copy/Data/Array/Parallel/Lifted/TH/Repr.hs:1:14-28: Template Haskell requires GHC with interpreter support<o:p></o:p></p>
<p class="MsoNormal">Perhaps you are using a stage-1 compiler?<o:p></o:p></p>
<p class="MsoNormal" style="margin:0cm;margin-bottom:.0001pt"><i><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB">Microsoft Research Limited (company number 03369488) is registered in England and Wales
<o:p></o:p></span></i></p>
<p class="MsoNormal" style="margin:0cm;margin-bottom:.0001pt"><i><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB">Registered office is at 21 Station Road, Cambridge, CB1 2FB</span></i><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>