Improve command-line option parsing
This commit is contained in:
parent
0d18329354
commit
75e102ed7d
3 changed files with 51 additions and 53 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
module Mima.Format.State
|
||||
( FormatConfig(..)
|
||||
, defaultFormatConfig
|
||||
, FormatEnv(..)
|
||||
, FormatReader
|
||||
, Formatter
|
||||
|
|
@ -43,21 +42,6 @@ data FormatConfig = FormatConfig
|
|||
, fcShowLabels :: Bool -- Currently unused
|
||||
} deriving (Show)
|
||||
|
||||
defaultFormatConfig :: FormatConfig
|
||||
defaultFormatConfig = FormatConfig
|
||||
{ fcSparse = True
|
||||
, fcShowRegisterFlags = True
|
||||
, fcShowMemoryFlags = True
|
||||
, fcShowAddressDec = True
|
||||
, fcShowAddressHex = True
|
||||
, fcShowAddressBin = False
|
||||
, fcShowWordDec = True
|
||||
, fcShowWordHex = True
|
||||
, fcShowWordBin = False
|
||||
, fcShowInstructions = True
|
||||
, fcShowLabels = False
|
||||
}
|
||||
|
||||
data FormatEnv = FormatEnv
|
||||
{ feState :: MimaState
|
||||
, feFlags :: Flags (MimaAddress -> Bool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue