Skip to content

Commit

Permalink
Remove explicit import of Prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
augustss committed Aug 29, 2024
1 parent 73e3f4c commit 04699be
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/MicroHs/Abstract.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module MicroHs.Abstract(
compileOpt,
-- reduce,
) where
import Prelude
import MicroHs.Ident
import MicroHs.Exp
import MicroHs.Expr(Lit(..))
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module MicroHs.Compile(
packageDir, packageSuffix, packageTxtSuffix,
mhsVersion,
) where
import Prelude
import Data.Char
import Data.List
import Data.Maybe
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/CompileCache.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module MicroHs.CompileCache(
addPackage, getCompMdls, getPkgs,
saveCache, loadCached,
) where
import Prelude
import MicroHs.Desugar(LDef)
import MicroHs.Expr(IdentModule)
import MicroHs.Ident(showIdent)
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Desugar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module MicroHs.Desugar(
LDef, showLDefs,
encodeInteger,
) where
import Prelude
import Data.Char
import Data.Function
import Data.Integer(_integerToIntList)
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/ExpPrint.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module MicroHs.ExpPrint(toStringCMdl, toStringP, encodeString, combVersion) where
import Prelude
import Data.Char(ord, chr)
import qualified MicroHs.IdentMap as M
import Data.Maybe
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Fixity.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module MicroHs.Fixity(resolveFixity) where
import Prelude
import MicroHs.Expr
import MicroHs.Ident

Expand Down
2 changes: 0 additions & 2 deletions src/MicroHs/Ident.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ module MicroHs.Ident(
SLoc(..), noSLoc,
showSLoc,
) where
import Data.Eq
import Prelude
import Data.Char
import Text.PrettyPrint.HughesPJLite
import GHC.Stack
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-- See LICENSE file for full license.
{-# OPTIONS_GHC -Wno-unused-do-bind -Wno-unused-imports #-}
module MicroHs.Main(main) where
import Prelude
import Data.Char
import Data.List
import Data.Version
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/MakeCArray.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-- Copyright 2023 Lennart Augustsson
-- See LICENSE file for full license.
module MicroHs.MakeCArray(makeCArray) where
import Prelude
import Data.Char
import MicroHs.Flags
import qualified System.Compress as C
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
-- See LICENSE file for full license.
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns -Wno-unused-do-bind #-}
module MicroHs.Parse(P, pTop, pTopModule, parseDie, parse, pExprTop, keywords) where
import Prelude
import Control.Applicative
import Control.Monad
import Data.Char
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/StateIO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module MicroHs.StateIO(
module Control.Monad,
module Data.Functor,
) where
import Prelude
import Control.Applicative
import Control.Monad
import Data.Functor hiding(unzip)
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/TCMonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module MicroHs.TCMonad(
module MicroHs.TCMonad,
get, put, gets, modify,
) where
import Prelude
import Data.Functor.Identity
import GHC.Stack
import Control.Applicative
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/Translate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module MicroHs.Translate(
translate, translateAndRun
) where
import Prelude
import Data.Maybe
import qualified MicroHs.IdentMap as M
import Unsafe.Coerce
Expand Down
1 change: 0 additions & 1 deletion src/MicroHs/TypeCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module MicroHs.TypeCheck(
ValueExport(..), TypeExport(..),
Symbols,
) where
import Prelude
import Control.Applicative
import Control.Arrow(first)
import Control.Monad
Expand Down

0 comments on commit 04699be

Please sign in to comment.