Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. The type annotation is saying:
  2.  
  3. Address Action -> (Bool -> Action) -> String -> Bool -> Html
  4.  
  5. But I am inferring that the definition has this type:
  6.  
  7. Address Bool -> a -> String -> Bool -> Html
  8.  
  9. checkboxField : Address Action -> (Bool -> Action) -> String -> Bool -> Html`
  10. checkboxField address toAction name content =
  11. div
  12. [onClick address (not content)]
  13. [text "click here"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement