ambiguous occurrence of catch

48 views
Skip to first unread message

pengk...@gmail.com

unread,
Feb 26, 2014, 9:56:46 AM2/26/14
to proglang-c...@googlegroups.com
  When i run the testsuite it shows that progs-test-lab3.hs:279:22 ambiguous occurrence 'catch'   how to fix this?'

John J. Camilleri

unread,
Feb 26, 2014, 10:56:49 AM2/26/14
to pengk...@gmail.com, proglang-c...@googlegroups.com
Add this line to the top of progs-test-lab3.hs, above the other imports:

import Prelude hiding (catch)



On 26 February 2014 15:56, <pengk...@gmail.com> wrote:
  When i run the testsuite it shows that progs-test-lab3.hs:279:22 ambiguous occurrence 'catch'   how to fix this?'

--
You received this message because you are subscribed to the Google Groups "proglang-course-2014" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proglang-course-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages