From 34dd9de83cc95a5fcaccd48614669314d35e89e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Thu, 23 Oct 2014 00:53:41 +0200 Subject: [PATCH] Add Show instance for `Options` --- Language/Haskell/GhcMod/Types.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Language/Haskell/GhcMod/Types.hs b/Language/Haskell/GhcMod/Types.hs index 3347816..46b7a35 100644 --- a/Language/Haskell/GhcMod/Types.hs +++ b/Language/Haskell/GhcMod/Types.hs @@ -19,9 +19,10 @@ type IOish m = (Functor m, MonadIO m, MonadBaseControl IO m, ExceptionMonad m) -- | Output style. data OutputStyle = LispStyle -- ^ S expression style. | PlainStyle -- ^ Plain textstyle. + deriving (Show) -- | The type for line separator. Historically, a Null string is used. -newtype LineSeparator = LineSeparator String +newtype LineSeparator = LineSeparator String deriving (Show) data Options = Options { outputStyle :: OutputStyle @@ -40,7 +41,7 @@ data Options = Options { -- | If 'True', 'browse' will return fully qualified name , qualified :: Bool , hlintOpts :: [String] - } + } deriving (Show) -- | A default 'Options'.