Skip to content

Commit

Permalink
Prefix internal modules with Internal
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobBruenker committed Oct 15, 2023
1 parent c46b870 commit 50210aa
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.2.0.0 -- 2023-10-16

* Added support for GHC 9.8
* Prefix internal modules with `Internal`

## 0.1.1.0 -- 2023-07-10

Expand Down
12 changes: 6 additions & 6 deletions monadic-bang.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ library
-- Modules exported by the library.
exposed-modules: MonadicBang
MonadicBang.Internal
MonadicBang.Effect.Offer
MonadicBang.Effect.Uniques
MonadicBang.Effect.Writer.Discard
MonadicBang.Options
MonadicBang.Utils
MonadicBang.Error
MonadicBang.Internal.Effect.Offer
MonadicBang.Internal.Effect.Uniques
MonadicBang.Internal.Effect.Writer.Discard
MonadicBang.Internal.Options
MonadicBang.Internal.Utils
MonadicBang.Internal.Error

-- Modules included in this library but not exported.
-- other-modules:
Expand Down
12 changes: 6 additions & 6 deletions src/MonadicBang/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ import Text.Printf

import GHC.Utils.Logger

import MonadicBang.Effect.Offer
import MonadicBang.Effect.Uniques
import MonadicBang.Options
import MonadicBang.Utils
import MonadicBang.Error
import MonadicBang.Internal.Effect.Offer
import MonadicBang.Internal.Effect.Uniques
import MonadicBang.Internal.Options
import MonadicBang.Internal.Utils
import MonadicBang.Internal.Error
import MonadicBang.Internal.Effect.Writer.Discard

import Data.Kind
import MonadicBang.Effect.Writer.Discard

-- We don't care about which file things are from, because the entire AST comes
-- from the same module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE OverloadedRecordDot #-}

module MonadicBang.Effect.Offer where
module MonadicBang.Internal.Effect.Offer where

import Control.Algebra
import Control.Carrier.State.Strict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE OverloadedRecordDot #-}

module MonadicBang.Effect.Uniques where
module MonadicBang.Internal.Effect.Uniques where

import Control.Algebra
import Control.Carrier.State.Strict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{-# LANGUAGE GADTs #-}

-- | A Writer carrier that discards any values it is told
module MonadicBang.Effect.Writer.Discard where
module MonadicBang.Internal.Effect.Writer.Discard where

import Control.Algebra
import Control.Effect.Writer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE CPP #-}

module MonadicBang.Error where
module MonadicBang.Internal.Error where

import Prelude hiding ((<>))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE OverloadedRecordDot #-}
{-# LANGUAGE CPP #-}

module MonadicBang.Options where
module MonadicBang.Internal.Options where

import Control.Exception
import Control.Algebra
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE CPP #-}

module MonadicBang.Utils where
module MonadicBang.Internal.Utils where

import Control.Monad.Trans.Maybe
import Data.Monoid
Expand Down
2 changes: 1 addition & 1 deletion test/MonadicBang/Test/ShouldFail.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module MonadicBang.Test.ShouldFail (shouldFail) where

import MonadicBang.Test.Utils
import MonadicBang.Error
import MonadicBang.Internal.Error

import GHC.Types.Name.Occurrence

Expand Down
2 changes: 1 addition & 1 deletion test/MonadicBang/Test/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import GHC.Types.SourceError
import GHC.Utils.Outputable hiding ((<>))

import MonadicBang.Test.Utils.RunGhcParser
import MonadicBang.Utils
import MonadicBang.Internal.Utils
import Data.Monoid

data FailType
Expand Down

0 comments on commit 50210aa

Please sign in to comment.