[web-devel] Yesod and 'Order' datatype name

Anton Cheshkov acheshkov at gmail.com
Tue Apr 26 08:55:00 CEST 2011


I have found what it is )

*data family Order val -- Defined in Database.Persist.Base*

2011/4/26 Anton Cheshkov <acheshkov at gmail.com>

> Michael hello .
>
> I have got strange  ambiguity in yesod. I have in my model the entity with
> name Order.
> In compile time i got next error
>
> *Conflicting exports for `Order':*
> *      `module Yesod' exports `Yesod.Order' imported from Yesod at
> Pomoguy.hs:15:1-12 *
> *      `module Model' exports `Model.Order' imported from Model at
> Pomoguy.hs:22:1-12*
> *                                             (defined at Model.hs:26:1)*
>
>
> i hide *Order (import Yesod hiding (Order)) *all work fine.
>
> Is '*Order*' name reserved by Yesod ?
>
> Thanks.
>
> --
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Skype: cheshkov_anton
>



-- 
Best regards,
Cheshkov Anton
Phone: +7 909 005 18 82
Skype: cheshkov_anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110426/a4306e03/attachment.htm>


More information about the web-devel mailing list