Skip to content

Commit

Permalink
Re #2407 Move exceptions out of Stack.Types.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Apr 19, 2023
1 parent 34bef88 commit c0cdfbc
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 310 deletions.
1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ library:
- Stack.Types.Compiler
- Stack.Types.Config
- Stack.Types.Config.Build
- Stack.Types.Config.Exception
- Stack.Types.ConfigMonoid
- Stack.Types.Docker
- Stack.Types.DockerEntrypoint
Expand Down
11 changes: 6 additions & 5 deletions src/Stack/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ import Stack.Types.ColorWhen ( ColorWhen (..) )
import Stack.Types.Compiler ( defaultCompilerRepository )
import Stack.Types.Config
( BuildConfig (..), BuildOpts (..), Config (..)
, ConfigException (..), ConfigPrettyException (..)
, HasConfig (..), ParseAbsolutePathException (..)
, Project (..), ProjectAndConfigMonoid (..)
, HasConfig (..), Project (..), ProjectAndConfigMonoid (..)
, ProjectConfig (..), askLatestSnapshotUrl, configProjectRoot
, packageIndicesWarning, parseProjectAndConfigMonoid
, platformOnlyRelDir, stackRootL, workDirL
, parseProjectAndConfigMonoid, platformOnlyRelDir, stackRootL
, workDirL
)
import Stack.Types.Config.Exception
( ConfigException (..), ConfigPrettyException (..)
, ParseAbsolutePathException (..), packageIndicesWarning )
import Stack.Types.ConfigMonoid
( ConfigMonoid (..), parseConfigMonoid )
import Stack.Types.Docker ( DockerOptsMonoid (..), dockerEnable )
Expand Down
6 changes: 2 additions & 4 deletions src/Stack/Init.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ import Stack.Runners
( ShouldReexec (..), withConfig, withGlobalProject )
import Stack.SourceMap
( SnapshotCandidate, loadProjectSnapshotCandidate )
import Stack.Types.Config
( ConfigPrettyException (..), HasConfig, HasGHCVariant
, Project (..)
)
import Stack.Types.Config ( HasConfig, HasGHCVariant, Project (..) )
import Stack.Types.Config.Exception ( ConfigPrettyException (..) )
import Stack.Types.GlobalOpts ( GlobalOpts (..) )
import Stack.Types.Runner (Runner, globalOptsL )
import Stack.Types.Resolver ( AbstractResolver, Snapshots (..) )
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Lock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Path.Extended ( addExtension )
import Path.IO ( doesFileExist )
import Stack.Prelude
import Stack.SourceMap ( snapToDepPackage )
import Stack.Types.Config ( ConfigPrettyException (..) )
import Stack.Types.Config.Exception ( ConfigPrettyException (..) )
import Stack.Types.LockFileBehavior ( LockFileBehavior (..) )
import Stack.Types.Runner ( HasRunner, lockFileBehaviorL, rslInLogL )
import Stack.Types.SourceMap ( DepPackage, SMWanted )
Expand Down
Loading

0 comments on commit c0cdfbc

Please sign in to comment.