Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. 99problems.hs:63:3: error:
  2. • Ambiguous type variable ‘a0’ arising from a use of ‘print’
  3. prevents the constraint ‘(Show a0)’ from being solved.
  4. Probable fix: use a type annotation to specify what ‘a0’ should be.
  5. These potential instances exist:
  6. instance Show Ordering -- Defined in ‘GHC.Show’
  7. instance Show Integer -- Defined in ‘GHC.Show’
  8. instance Show a => Show (Maybe a) -- Defined in ‘GHC.Show’
  9. ...plus 22 others
  10. ...plus five instances involving out-of-scope types
  11. (use -fprint-potential-instances to see them all)
  12. • In a stmt of a 'do' block: print (flatten (List []))
  13. In the expression:
  14. do { print (flatten (Elem 5));
  15. print (flatten (List [Elem 1, List [...]]));
  16. print (flatten (List [])) }
  17. In an equation for ‘main’:
  18. main
  19. = do { print (flatten (Elem 5));
  20. print (flatten (List [Elem 1, ....]));
  21. print (flatten (List [])) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement