jaspervdj / digestive-functors

A general way to consume input using applicative functors
149 stars 71 forks source link

"monadic" seems to break field naming #39

Closed ocharles closed 12 years ago

ocharles commented 12 years ago

If I have Foo <$> "bar" .: choice [] Nothing then inputSelect "bar" shows an empty <select> as expected.

If I change the form to Foo <$> "bar" .: (monadic $ return $ choice [] Nothing) then the same view crashes with 'bar is not a field'.

I may be doing something stoopid, but as monadic has no documentation, I can only assume this is how it is intended to work.

jaspervdj commented 12 years ago

I think this is an occurrence of a hotfix I did yesterday (7e5ef41a878db8049cef9a7ac308ac6169ab2a7c). digestive-functors-0.4.1.1 on Hackage should fix this.

ocharles commented 12 years ago

Hmmm, it doesn't seem to be helping, I still get

 format is not a field

I am running 888fa113d0e0c45dc06845a9a692d6067247eed1. My form code is BookBrainz.Forms:63 and the view is BookBrainz.Web.View:90. dbSelect and optionalDbSelect are the monadic fields.

jaspervdj commented 12 years ago

Hey, I just pushed another fix, 6019d835b567174678b44570d905d77f71bea582, could you try again with that if it's not too much trouble?

ocharles commented 12 years ago

Works great, thank you!