Getting "Discrete Mathematics Using a Computer" code to run
Saw this message: Error Loading Stdm.lhs in Haskell platform 2012 *Iwan Awaludin* awaludin at gmail.com <beginners%40haskell.org?Subject=Re%3A%20%5BHaskell-beginners%5D%20Error%20Loading%20Stdm.lhs%20in%20Haskell%20platform%202012&In-Reply-To=%3CCAHd5so7N7nX%3Ddiyk9Sv3%2B553gvqmXhWqGfgcHmAh%3D5XR0nHp8w%40mail.gmail.com%3E> *Tue Sep 4 07:08:20 CEST 2012* and that helped past that error. But now I get [1 of 1] Compiling Stdm ( .../Discrete/Stdm02142015.lhs, interpreted ) .../Discrete/Stdm02142015.lhs:1036:40-46: Not in scope: `catch' .../Discrete/Stdm02142015.lhs:1048:40-46: Not in scope: `catch' Failed, modules loaded: none. This is on ghci 7.6.3 lb
On Sat, 14 Feb 2015 23:30:13 +0100, Lawrence Bottorff <borgauf@gmail.com> wrote:
.../Discrete/Stdm02142015.lhs:1036:40-46: Not in scope: `catch'
.../Discrete/Stdm02142015.lhs:1048:40-46: Not in scope: `catch' Failed, modules loaded: none.
This is on ghci 7.6.3
The function "catch" is removed from Prelude, you need to add the line: import Control.Exception Regards, Henk-Jan van Tuyl -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
participants (2)
-
Henk-Jan van Tuyl -
Lawrence Bottorff