Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Eq is a type class, and type class names are capitalized (like types and constructors). Changing eq to Eq should get you past that error. Conversely, in SimpleEnigma = SimpleEnigma rotor1 rotor...
Answer
#1: Initial revision
`Eq` is a type class, and type class names are capitalized (like types and constructors). Changing `eq` to `Eq` should get you past that error. Conversely, in ```hs SimpleEnigma = SimpleEnigma rotor1 rotor2 rotor3 reflectorB offsets SteckeredEnigma = SteckeredEnigma rotor1 rotor2 rotor3 reflectorB offsets steckerB ``` you'll need to change the things you're defining to start with a lowercase letter. (What you have is doubly wrong: it's invalid to declare a variable with a capitalized name, and even if it weren't, `SimpleEnigma` and `SteckeredEnigma` are already defined as the constructors of `Enigma`.)