
Above is a question I am having problems with. It asks me to give a type and define a non infix function.
So my approach was to use pattern matching.
The idea was to take two booleans, then go through patterns
xor :: bool -> bool -> bool xor True True == False xor True False == True xor False True == True xor False False == False I am getting a compile error.
Parse error: naked expression at top level Perhaps you intended to use TemplateHaskell Can someone tell me what I am doing wrong here and how I can fix it?
Thanks alot.