From 6b9ba62c8c5c8290737493697ffe87b3126c8ec9 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 11 Oct 2019 13:50:40 -0400 Subject: [PATCH] Rename Core.Core.* to Core.*. --- semantic-core/semantic-core.cabal | 4 ++-- semantic-core/src/Core/{Core => }/Parser.hs | 2 +- semantic-core/src/Core/{Core => }/Pretty.hs | 2 +- semantic-core/test/Test.hs | 4 ++-- semantic-python/test/Directive.hs | 4 ++-- semantic-python/test/Test.hs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename semantic-core/src/Core/{Core => }/Parser.hs (99%) rename semantic-core/src/Core/{Core => }/Pretty.hs (99%) diff --git a/semantic-core/semantic-core.cabal b/semantic-core/semantic-core.cabal index b5d2fd32a..0be3f8a50 100644 --- a/semantic-core/semantic-core.cabal +++ b/semantic-core/semantic-core.cabal @@ -41,8 +41,8 @@ library hs-source-dirs: src exposed-modules: Core.Core - Core.Core.Parser - Core.Core.Pretty + Core.Parser + Core.Pretty Core.Eval Core.Name build-depends: diff --git a/semantic-core/src/Core/Core/Parser.hs b/semantic-core/src/Core/Parser.hs similarity index 99% rename from semantic-core/src/Core/Core/Parser.hs rename to semantic-core/src/Core/Parser.hs index 563089ad0..34e417364 100644 --- a/semantic-core/src/Core/Core/Parser.hs +++ b/semantic-core/src/Core/Parser.hs @@ -1,5 +1,5 @@ {-# LANGUAGE FlexibleContexts, TypeOperators #-} -module Core.Core.Parser +module Core.Parser ( core , lit , expr diff --git a/semantic-core/src/Core/Core/Pretty.hs b/semantic-core/src/Core/Pretty.hs similarity index 99% rename from semantic-core/src/Core/Core/Pretty.hs rename to semantic-core/src/Core/Pretty.hs index 747daf657..808f02f69 100644 --- a/semantic-core/src/Core/Core/Pretty.hs +++ b/semantic-core/src/Core/Pretty.hs @@ -1,6 +1,6 @@ {-# LANGUAGE FlexibleContexts, LambdaCase, OverloadedStrings, TypeApplications #-} -module Core.Core.Pretty +module Core.Pretty ( showCore , printCore , showFile diff --git a/semantic-core/test/Test.hs b/semantic-core/test/Test.hs index 83d95c63f..8b147e510 100644 --- a/semantic-core/test/Test.hs +++ b/semantic-core/test/Test.hs @@ -10,8 +10,8 @@ import Test.Tasty.HUnit import Analysis.File import Core.Core -import Core.Core.Pretty -import Core.Core.Parser as Parse +import Core.Pretty +import Core.Parser as Parse import qualified Core.Eval as Eval import Core.Name import qualified Generators as Gen diff --git a/semantic-python/test/Directive.hs b/semantic-python/test/Directive.hs index 3c4bc20a0..db95ff4dc 100644 --- a/semantic-python/test/Directive.hs +++ b/semantic-python/test/Directive.hs @@ -7,8 +7,8 @@ module Directive ( Directive (..) import Control.Applicative import Control.Monad import Core.Core (Core) -import qualified Core.Core.Parser as Core.Parser -import qualified Core.Core.Pretty as Core.Pretty +import qualified Core.Parser as Core.Parser +import qualified Core.Pretty as Core.Pretty import Core.Name (Name) import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as ByteString diff --git a/semantic-python/test/Test.hs b/semantic-python/test/Test.hs index 2b0b8c567..75fb06bb2 100644 --- a/semantic-python/test/Test.hs +++ b/semantic-python/test/Test.hs @@ -12,7 +12,7 @@ import Control.Monad.Catch import Control.Monad.IO.Class import Control.Monad.Trans.Resource (ResourceT, runResourceT) import Core.Core -import Core.Core.Pretty +import Core.Pretty import qualified Core.Eval as Eval import Core.Name import qualified Data.Aeson as Aeson