<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 17, 2015 at 12:14 AM, akash g <span dir="ltr"><<a href="mailto:akaberto@gmail.com" target="_blank">akaberto@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>The phantom type doesn't appear on the actual constructors, only on the  type signatures.  In the function convertToReq, you are changing the following<br></div>1. The type.<br></div>2. The value of the price record (actually returning a new value with the price record changed to one and the rest of the fields being the same.<br></blockquote></div><br>I'm not sure I see the difference between the given example and the "effectively phantom" type in</div><div class="gmail_extra"><br></div><div class="gmail_extra">    foo :: Maybe String -> Maybe Int</div><div class="gmail_extra">    foo x@Nothing = x -- error: Nothing :: Maybe String is not compatible with Maybe Int</div><div class="gmail_extra">    foo x = ...<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>