on master help sign in
Output: Use throwError from Control.Monad.Except

Update 'Idris/Output.hs' to use 'throwError' from 'Control.Monad.Except' rather than from 'Control.Monad.Error', which causes the build to fail with a default setup: src/Idris/Output.hs:18:1: Warning: Module ‘Control.Monad.Error’ is deprecated: Use Control.Monad.Except instead <no location info>: Failing due to -Werror. With this patch it should build fine. This requires mtl >= 2.2.1, so add this to the cabal file. Signed-off-by: Alexander Berntsen <alexander@plaimi.net>

commit2d0cc4914a3c510d02a5bbf7d6d440db5be18b44 authorAlexander Berntsen <alexander@plaimi.net> dateMon 24 Nov 2014, 12:48 (12 years ago) parentc87ea77
2 files changed+2−2
idris.cabal+1−1 src/Idris/Output.hs+1−1
idris.cabal+1−1
@@ -702,7 +702,7 @@ Library
702702 , fingertree >= 0.1 && < 0.2
703703 , haskeline >= 0.7 && < 0.8
704704 , lens >= 4.1.1 && < 4.7
705− , mtl < 2.3
705+ , mtl >= 2.2.1 && < 2.3
706706 , network < 2.7
707707 , optparse-applicative >= 0.11 && < 0.12
708708 , parsers >= 0.9 && < 0.13
src/Idris/Output.hs+1−1
@@ -15,7 +15,7 @@ import Util.ScreenSize (getScreenWidth)
1515
1616import Debug.Trace
1717
18−import Control.Monad.Error (throwError)
18+import Control.Monad.Except (throwError)
1919
2020import System.IO (stdout, Handle, hPutStrLn)
2121