Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug. Related to dField? #66

Open
nickgeoca opened this issue Sep 29, 2015 · 0 comments
Open

Bug. Related to dField? #66

nickgeoca opened this issue Sep 29, 2015 · 0 comments

Comments

@nickgeoca
Copy link

Description: dField bug? In the code below, the result of n+n' does not show up in browser.
Line: haskell dField( p << (n+n') ++> noWidget))
Version:

  • GHC 7.10.2
  • MFlow-0.4.5.11

Note this code was found in the tutorial and appears to apply to all dField examples in the tutorial. The code sample below is from the second to last tutorial in the link.

{-# LANGUAGE OverloadedStrings #-} 

import MFlow.Wai.Blaze.Html.All
import Data.Monoid

main= do
  userRegister "user" "user"

  runNavigation "" . step . page $ 
     wform wlogin **>
     ( pageFlow "s" . edTemplate "user" "template.html" .  witerate $ do
        (n,n') <- page $ (,) <$> dField(getInt Nothing) <++ br
                             <*> dField(getInt Nothing) <++ br
                             <** submitButton "send"

        dField( p << (n+n') ++> noWidget))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant