From c0b161602d090d940f8c693eed137a85a84d935c Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Mon, 18 Apr 2016 18:09:50 -0400 Subject: [PATCH] export generics --- .ghci | 2 ++ protolude.cabal | 1 + src/Protolude.hs | 7 ++----- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ghci b/.ghci index 29a3cb319..0d49fe5cb 100644 --- a/.ghci +++ b/.ghci @@ -1 +1,3 @@ :set -XNoImplicitPrelude +:set -XOverloadedStrings +import Prelude () diff --git a/protolude.cabal b/protolude.cabal index d0eb8df5d..558b004ac 100644 --- a/protolude.cabal +++ b/protolude.cabal @@ -55,6 +55,7 @@ library ghc-options: -Wall + -fwarn-implicit-prelude build-depends: base >= 4.6 && <4.10, diff --git a/src/Protolude.hs b/src/Protolude.hs index 0d821a3e8..7c7a2d5e0 100644 --- a/src/Protolude.hs +++ b/src/Protolude.hs @@ -244,7 +244,7 @@ import Data.Function as X ( ) -- Genericss -import GHC.Generics ( +import GHC.Generics as X ( Generic(..) , Rep , K1(..) @@ -300,10 +300,7 @@ import Text.Printf as X ( import System.Exit as X --import System.Info as X import System.Environment as X (getArgs) -import System.IO as X ( - Handle - , hClose - ) +import System.IO as X (Handle) -- ST import Control.Monad.ST as X