From 7b3a84bc7475428087bed8ead5c3477b5796aba2 Mon Sep 17 00:00:00 2001 From: NightRa Date: Thu, 28 May 2015 00:22:04 +0300 Subject: [PATCH] Remove the data-default dependency --- ghc-mod.cabal | 1 - src/GHCMod.hs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/ghc-mod.cabal b/ghc-mod.cabal index bc5a01c..e6be847 100644 --- a/ghc-mod.cabal +++ b/ghc-mod.cabal @@ -160,7 +160,6 @@ Executable ghc-mod HS-Source-Dirs: src Build-Depends: base >= 4.0 && < 5 , async - , data-default , directory , filepath , pretty diff --git a/src/GHCMod.hs b/src/GHCMod.hs index 49e4099..35d58b9 100644 --- a/src/GHCMod.hs +++ b/src/GHCMod.hs @@ -8,7 +8,6 @@ import Control.Applicative import Control.Monad import Data.Typeable (Typeable) import Data.Version (showVersion) -import Data.Default import Data.List import Data.List.Split import Data.Char (isSpace) @@ -303,9 +302,6 @@ data InteractiveOptions = InteractiveOptions { ghcModExtensions :: Bool } -instance Default InteractiveOptions where - def = InteractiveOptions False - handler :: IO a -> IO a handler = flip catches $ [ Handler $ \(FatalError msg) -> exitError msg