Advertisement
Guest User

Untitled

a guest
Dec 27th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. Couldn't match type `GObject -> widget0' with `WidgetClass w'
  2. Expected type: WidgetClass w => (GObject -> w) -> String -> IO w
  3. Actual type: (GObject -> widget0) -> String -> IO widget0
  4. In the pattern:
  5. bind :: WidgetClass w => (GObject -> w) -> String -> IO w
  6. In a stmt of a 'do' block:
  7. bind :: WidgetClass w =>
  8. (GObject -> w) -> String -> IO w <- widgetBinder file
  9. In the expression:
  10. do { bind :: WidgetClass w =>
  11. (GObject -> w) -> String -> IO w <- widgetBinder file;
  12. MyDialog <$> bind castToWindow "w" <*> bind castToButton "b" }
  13.  
  14. Couldn't match type `Window' with `Button'
  15. Expected type: IO Button
  16. Actual type: IO w
  17. In the return type of a call of `bind'
  18. In the second argument of `(<*>)', namely `bind castToButton "b"'
  19. In a stmt of a 'do' block:
  20. MyDialog <$> bind castToWindow "w" <*> bind castToButton "b"
  21.  
  22. Couldn't match type `Window' with `Button'
  23. Expected type: GObject -> w
  24. Actual type: GObject -> Button
  25. In the first argument of `bind', namely `castToButton'
  26. In the second argument of `(<*>)', namely `bind castToButton "b"'
  27. In a stmt of a 'do' block:
  28. MyDialog <$> bind castToWindow "w" <*> bind castToButton "b"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement