<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;}
p.Code, li.Code, div.Code
        {mso-style-name:Code;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:22.7pt;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-language:EN-US;
        font-weight:bold;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        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" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">If ‘transformers’ purposely has orphan instances, shouldn’t we switch off the warnings about them?<o:p></o:p></p>
<p class="MsoNormal">Simon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="Code">"/opt/ghc/bin/ghc" -hisuf hi -osuf  o -hcsuf hc -static  -O -H64m -Wall   -package-db libraries/bootstrapping.conf  -this-unit-id transformers-0.5.6.2 -hide-all-packages -package-env - -i -ilibraries/transformers/. -ilibraries/transformers/dist-boot/build
 -Ilibraries/transformers/dist-boot/build -ilibraries/transformers/dist-boot/build/./autogen -Ilibraries/transformers/dist-boot/build/./autogen -Ilibraries/transformers/.    -optP-include -optPlibraries/transformers/dist-boot/build/./autogen/cabal_macros.h
 -package-id base-4.14.1.0 -XHaskell98   -no-user-package-db -rtsopts  -fno-warn-unused-matches -fno-warn-unused-imports -fno-warn-deprecated-flags      -outputdir libraries/transformers/dist-boot/build   -c libraries/transformers/./Control/Applicative/Lift.hs
 -o libraries/transformers/dist-boot/build/Control/Applicative/Lift.o <o:p></o:p></p>
<p class="Code"><o:p> </o:p></p>
<p class="Code">libraries/transformers/Control/Monad/Trans/Error.hs:98:1: warning: [-Worphans]<o:p></o:p></p>
<p class="Code">    Orphan instance: instance [safe] Error e => Alternative (Either e)<o:p></o:p></p>
<p class="Code">    To avoid this<o:p></o:p></p>
<p class="Code">        move the instance declaration to the module of the class or of the type, or<o:p></o:p></p>
<p class="Code">        wrap the type with a newtype and declare the instance on the new type.<o:p></o:p></p>
<p class="Code">   |<o:p></o:p></p>
<p class="Code">98 | instance (Error e) => Alternative (Either e) where<o:p></o:p></p>
<p class="Code">   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...<o:p></o:p></p>
<p class="Code"><o:p> </o:p></p>
<p class="Code">libraries/transformers/Control/Monad/Trans/Error.hs:103:1: warning: [-Worphans]<o:p></o:p></p>
<p class="Code">    Orphan instance: instance [safe] Error e => MonadPlus (Either e)<o:p></o:p></p>
<p class="Code">    To avoid this<o:p></o:p></p>
<p class="Code">        move the instance declaration to the module of the class or of the type, or<o:p></o:p></p>
<p class="Code">        wrap the type with a newtype and declare the instance on the new type.<o:p></o:p></p>
<p class="Code">    |<o:p></o:p></p>
<p class="Code">103 | instance (Error e) => MonadPlus (Either e) where<o:p></o:p></p>
<p class="Code">    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...     <span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
<o:p></o:p></span></p>
</div>
</body>
</html>