Improve command-line option parsing

This commit is contained in:
Joscha 2019-11-19 11:45:24 +00:00
parent 0d18329354
commit 75e102ed7d
3 changed files with 51 additions and 53 deletions

View file

@ -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)