rewire-base-2.8: A Haskell-to-Verilog/VHDL compiler, shared base utilities
Safe HaskellTrustworthy
LanguageHaskell2010

ReWire.Config

Synopsis

Documentation

interpret :: [Flag] -> Either ErrorMsg Config Source #

eidosFile :: Config -> FilePath -> FilePath Source #

The Eidos IR dump beside the output (the --eidos dump): <out>.eir.

synolonFile :: Config -> FilePath -> FilePath Source #

The Synolon IR dump beside the output — the --synolon dump, and the --certify source artifact (both the writer and the validator invocation compute the path here): <out>.syn.

data Language Source #

Instances

Instances details
Show Language Source # 
Instance details

Defined in ReWire.Config

Eq Language Source # 
Instance details

Defined in ReWire.Config

Ord Language Source # 
Instance details

Defined in ReWire.Config

data ResetFlag Source #

Constructors

Inverted 
Synchronous 

Instances

Instances details
Generic ResetFlag Source # 
Instance details

Defined in ReWire.Config

Associated Types

type Rep ResetFlag 
Instance details

Defined in ReWire.Config

type Rep ResetFlag = D1 ('MetaData "ResetFlag" "ReWire.Config" "rewire-base-2.8-FlLB0CaWUZ0C08bXxr65qo" 'False) (C1 ('MetaCons "Inverted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Synchronous" 'PrefixI 'False) (U1 :: Type -> Type))
Show ResetFlag Source # 
Instance details

Defined in ReWire.Config

Eq ResetFlag Source # 
Instance details

Defined in ReWire.Config

Ord ResetFlag Source # 
Instance details

Defined in ReWire.Config

Hashable ResetFlag Source # 
Instance details

Defined in ReWire.Config

type Rep ResetFlag Source # 
Instance details

Defined in ReWire.Config

type Rep ResetFlag = D1 ('MetaData "ResetFlag" "ReWire.Config" "rewire-base-2.8-FlLB0CaWUZ0C08bXxr65qo" 'False) (C1 ('MetaCons "Inverted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Synchronous" 'PrefixI 'False) (U1 :: Type -> Type))

data OutFlag Source #

Constructors

Flatten 
Pretty 
Verbose 

Instances

Instances details
Generic OutFlag Source # 
Instance details

Defined in ReWire.Config

Associated Types

type Rep OutFlag 
Instance details

Defined in ReWire.Config

type Rep OutFlag = D1 ('MetaData "OutFlag" "ReWire.Config" "rewire-base-2.8-FlLB0CaWUZ0C08bXxr65qo" 'False) (C1 ('MetaCons "Flatten" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Pretty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Verbose" 'PrefixI 'False) (U1 :: Type -> Type)))

Methods

from :: OutFlag -> Rep OutFlag x #

to :: Rep OutFlag x -> OutFlag #

Show OutFlag Source # 
Instance details

Defined in ReWire.Config

Eq OutFlag Source # 
Instance details

Defined in ReWire.Config

Methods

(==) :: OutFlag -> OutFlag -> Bool #

(/=) :: OutFlag -> OutFlag -> Bool #

Ord OutFlag Source # 
Instance details

Defined in ReWire.Config

Hashable OutFlag Source # 
Instance details

Defined in ReWire.Config

Methods

hashWithSalt :: Int -> OutFlag -> Int

hash :: OutFlag -> Int

type Rep OutFlag Source # 
Instance details

Defined in ReWire.Config

type Rep OutFlag = D1 ('MetaData "OutFlag" "ReWire.Config" "rewire-base-2.8-FlLB0CaWUZ0C08bXxr65qo" 'False) (C1 ('MetaCons "Flatten" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Pretty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Verbose" 'PrefixI 'False) (U1 :: Type -> Type)))

data Certify Source #

--certify: off, best-effort with an unsuppressible status report (--certify=warn), or required (plain --certify: compilation fails unless the validator returns VALIDATED).

Instances

Instances details
Show Certify Source # 
Instance details

Defined in ReWire.Config

Eq Certify Source # 
Instance details

Defined in ReWire.Config

Methods

(==) :: Certify -> Certify -> Bool #

(/=) :: Certify -> Certify -> Bool #

Ord Certify Source # 
Instance details

Defined in ReWire.Config

resetFlags :: Lens' Config (HashSet ResetFlag) Source #

outFlags :: Lens' Config (HashSet OutFlag) Source #

defaultInputsFile :: FilePath Source #

The default value of the inputsFile field: when the user hasn't named an inputs file explicitly, its absence is not warning-worthy.

dump :: Lens' Config (Natural -> Bool) Source #

pDebug :: MonadIO m => Config -> Text -> m () Source #