Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove --roundtrip, which was not implemented at all #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,3 @@ There are also two hidden flags which can be useful for debugging.
#### `--debug`

Outputs the GHC AST.

#### `--roundtrip`

Performs no refactoring operations on the file but is useful to test whether
unexpected formatting is due to `ghc-exactprint` or the refactoring.

5 changes: 0 additions & 5 deletions src/Refact/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ data Options = Options
, optionsVerbosity :: Verbosity
, optionsStep :: Bool -- ^ Ask before applying each hint
, optionsDebug :: Bool
, optionsRoundtrip :: Bool
, optionsVersion :: Bool
, optionsLanguage :: [String]
, optionsPos :: Maybe (Int, Int)
Expand Down Expand Up @@ -135,10 +134,6 @@ options =
<> help "Output the GHC AST for debugging"
<> internal)
<*>
switch (long "roundtrip"
<> help "Run ghc-exactprint on the file"
<> internal)
<*>
switch (long "version"
<> help "Display version number")
<*>
Expand Down
1 change: 0 additions & 1 deletion tests/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ mkTests files = testGroup "Unit tests" (map mkTest files)
, optionsRefactFile = Just rfile
, optionsVerbosity = Silent
, optionsStep = False
, optionsRoundtrip = False
, optionsDebug = False
, optionsVersion = False
, optionsLanguage = ["LambdaCase"]
Expand Down