[web-devel] Yesod. Strange behavior. Persistent. Templating

Anton Cheshkov acheshkov at gmail.com
Fri May 6 19:22:56 CEST 2011


It has helped.

Thanks.

2011/5/6 Michael Snoyman <michael at snoyman.com>

> Looks like an interesting corner case in the export rules for
> associated types. There's not much we can do about it I think. Though
> perhaps someone on the cafe has some advice.
>
> My recommendation: rename your entity from Order to something else.
>
> Michael
>
> On Thu, May 5, 2011 at 1:34 PM, Anton Cheshkov <acheshkov at gmail.com>
> wrote:
> > Handler/Orders.hs:25:22:
> >     Not in scope: type constructor or class `Order'
> > Handler/Orders.hs:25:29:
> >     Not in scope: type constructor or class `Order'
> > Handler/Orders.hs:28:52: Not in scope: `orderCustomer'
> > Handler/Orders.hs:29:50: Not in scope: `orderSeller'
> > Handler/Orders.hs:30:38: Not in scope: `orderCreatedDt'
> > Handler/Orders.hs:31:38: Not in scope: `orderComment'
> > Handler/Orders.hs:32:38: Not in scope: `orderState'
> > Handler/Orders.hs:128:22: Not in scope: `orderCustomerState'
> > Handler/Orders.hs:129:22: Not in scope: `orderSellerState'
> > Handler/Orders.hs:130:22: Not in scope: `orderSeller'
> > Handler/Orders.hs:148:37: Not in scope: `orderCreatedDt'
> > Handler/Orders.hs:149:20: Not in scope: `orderState'
> > etc ...
> > 2011/5/5 Felipe Almeida Lessa <felipe.lessa at gmail.com>
> >>
> >> On Thu, May 5, 2011 at 6:38 AM, Anton Cheshkov <acheshkov at gmail.com>
> >> wrote:
> >> > Hi Michael,
> >> > i have found strange behavior. All worked fine.
> >> > i change the one line in the config/model file
> >> > from
> >> > Category
> >> >     name Text
> >> > to
> >> > Category
> >> >     name Text Desc
> >> >
> >> >
> >> > After that all application was broke .  Seems like all 'exports' from
> >> > Model.hs was lost.
> >> > If i change back to 'name Text'  all works fine again.
> >>
> >> Hi! =)
> >>
> >> Please post the error messages you are seeing.  That would be helpful.
> >>
> >> Cheers,
> >>
> >> --
> >> Felipe.
> >
> >
> >
> > --
> > Best regards,
> > Cheshkov Anton
> > Phone: +7 909 005 18 82
> > Skype: cheshkov_anton
> >
> > _______________________________________________
> > web-devel mailing list
> > web-devel at haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel
> >
> >
>



-- 
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/20110506/cc67835e/attachment-0001.htm>


More information about the web-devel mailing list