You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add more Haskellian type checking and validation by:
making Message a class and requiring callers to explicitly supply a Message (using message) as an argument;
providing a total constructor for EnigmaConfig (either using configEnigmaExcept as sketched, or typing the arguments to EnigmaConfig and passing errors to configEnigmaExcept); and
creating and enforcing a type for valid characters for display functions (capital letters plus space; currently forced by messageChar).
Add more Haskellian type checking and validation by:
makingMessage
a class and requiring callers to explicitly supply aMessage
(usingmessage
) as an argument;EnigmaConfig
(either usingconfigEnigmaExcept
as sketched,or typing the arguments to); andEnigmaConfig
and passing errors toconfigEnigmaExcept
creating and enforcing a type for valid characters for display functions (capital letters plus space; currently forced by.messageChar
)Also possibly use valid character restrictions to
Mapping
a class and enforce checks.See:
The text was updated successfully, but these errors were encountered: